WIP flakes

This commit is contained in:
John Lancaster
2024-12-07 19:33:13 +00:00
parent a6348adef1
commit 4e87f3119f
2 changed files with 12 additions and 10 deletions

View File

@@ -1,14 +1,12 @@
{ pkgs, lib, modulesPath, ... }: { pkgs, modulesPath, ... }:
let let
stateVersion = "24.05"; stateVersion = "24.05";
userName = "loki";
repoPath = "/srv/loki";
in in
{ {
system.stateVersion = stateVersion; # system.stateVersion = stateVersion;
imports = [ # imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix") # (modulesPath + "/virtualisation/proxmox-lxc.nix")
]; # ];
# time.timeZone = "America/Chicago"; # time.timeZone = "America/Chicago";

View File

@@ -2,8 +2,9 @@
description = "Loki flake config"; description = "Loki flake config";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; # nixos.url = "github:NixOS/nixpkgs/nixos";
nixpkgs-stable.url = "nixpkgs/nixos-24.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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";
@@ -13,6 +14,7 @@
outputs = { outputs = {
self, self,
nixos,
nixpkgs, nixpkgs,
nixpkgs-stable, nixpkgs-stable,
home-manager, home-manager,
@@ -31,11 +33,13 @@
nixosConfigurations = { nixosConfigurations = {
# FIXME replace with your hostname # FIXME replace with your hostname
${hostname} = nixpkgs.lib.nixosSystem { ${hostname} = nixpkgs.lib.nixosSystem {
stateVersion = "24.05";
system = "${system}"; system = "${system}";
# time.timeZone = "${timeZone}"; 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"
vscode-server.nixosModules.default vscode-server.nixosModules.default
({ config, pkgs, ... }: {services.vscode-server.enable = true;}) ({ config, pkgs, ... }: {services.vscode-server.enable = true;})
]; ];