generated from john/nix-docker
Compare commits
2 Commits
a6348adef1
...
d741b62d2c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d741b62d2c | ||
|
|
4e87f3119f |
@@ -1,17 +1,5 @@
|
|||||||
{ pkgs, lib, modulesPath, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
stateVersion = "24.05";
|
|
||||||
userName = "loki";
|
|
||||||
repoPath = "/srv/loki";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
system.stateVersion = stateVersion;
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
# time.timeZone = "America/Chicago";
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
10
flake.lock
generated
10
flake.lock
generated
@@ -48,9 +48,10 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"type": "indirect"
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
@@ -63,9 +64,10 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-24.11",
|
||||||
"type": "indirect"
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
|
|||||||
13
flake.nix
13
flake.nix
@@ -2,8 +2,8 @@
|
|||||||
description = "Loki flake config";
|
description = "Loki flake config";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "nixpkgs/nixos-24.11";
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
stateVersion = "24.05";
|
||||||
timeZone = "America/Chicago";
|
timeZone = "America/Chicago";
|
||||||
hostname = "loki";
|
hostname = "loki";
|
||||||
lokiUser = "loki";
|
lokiUser = "loki";
|
||||||
@@ -31,11 +32,15 @@
|
|||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# FIXME replace with your hostname
|
# FIXME replace with your hostname
|
||||||
${hostname} = nixpkgs.lib.nixosSystem {
|
${hostname} = nixpkgs.lib.nixosSystem {
|
||||||
system = "${system}";
|
inherit system;
|
||||||
# time.timeZone = "${timeZone}";
|
|
||||||
specialArgs = {inherit inputs outputs;};
|
specialArgs = {inherit inputs outputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix # > Our main nixos configuration file <
|
./configuration.nix # > Our main nixos configuration file <
|
||||||
|
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
||||||
|
({ ... }: {
|
||||||
|
system.stateVersion = "${stateVersion}";
|
||||||
|
time.timeZone = "${timeZone}";
|
||||||
|
})
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
({ config, pkgs, ... }: {services.vscode-server.enable = true;})
|
({ config, pkgs, ... }: {services.vscode-server.enable = true;})
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user