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
stateVersion = "24.05";
userName = "loki";
repoPath = "/srv/loki";
in
{
system.stateVersion = stateVersion;
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
];
# system.stateVersion = stateVersion;
# imports = [
# (modulesPath + "/virtualisation/proxmox-lxc.nix")
# ];
# time.timeZone = "America/Chicago";

View File

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