generated from john/nix-docker
70 lines
2.0 KiB
Nix
70 lines
2.0 KiB
Nix
{
|
|
description = "Loki flake config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
vscode-server.url = "path:./nixos/vscode";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
nixpkgs-stable,
|
|
home-manager,
|
|
...
|
|
} @ inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
stateVersion = "24.05";
|
|
timeZone = "America/Chicago";
|
|
hostname = "panoptes-nix";
|
|
user = "panoptes";
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
${hostname} = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs outputs;};
|
|
modules = [
|
|
./configuration.nix # > Our main nixos configuration file <
|
|
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
|
({ ... }: {
|
|
nixpkgs.hostPlatform = "${system}";
|
|
system.stateVersion = "${stateVersion}";
|
|
time.timeZone = "${timeZone}";
|
|
# environment.systemPackages = [
|
|
# (pkgs.writeShellScriptBin "nfs" ''
|
|
# sudo nixos-rebuild switch --flake git+file:///etc/nixos#${hostname}
|
|
# '')
|
|
# ];
|
|
})
|
|
];
|
|
};
|
|
};
|
|
|
|
# homeManagerModules.default = ./homeManagerModules;
|
|
# nixosModules.default = ./nixosModules;
|
|
|
|
# Standalone home-manager configuration entrypoint
|
|
# Available through 'home-manager --flake .#your-username@your-hostname'
|
|
homeConfigurations = {
|
|
useGlobalPkgs = true;
|
|
"root@${hostname}" = home-manager.lib.homeManagerConfiguration {
|
|
extraSpecialArgs = {inherit inputs outputs pkgs;};
|
|
modules = [ ./home-manager/git.nix ];
|
|
};
|
|
|
|
"${user}@${hostname}" = home-manager.lib.homeManagerConfiguration {
|
|
extraSpecialArgs = {inherit inputs outputs pkgs;};
|
|
modules = [ ./home-manager/home.nix ];
|
|
};
|
|
};
|
|
};
|
|
}
|