add nixos-generator

This commit is contained in:
jopejoe1 2024-01-10 19:51:13 +01:00
parent 7a987a1fc3
commit fea6ae70a4
4 changed files with 92 additions and 0 deletions

24
flake.lock generated
View file

@ -286,6 +286,29 @@
"type": "github" "type": "github"
} }
}, },
"nixos-generators": {
"inputs": {
"nixlib": [
"nixpkgs-lib"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1701689616,
"narHash": "sha256-ewnfgvRy73HoP5KnYmy1Rcr4m4yShvsb6TCCaKoW8pc=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "246219bc21b943c6f6812bb7744218ba0df08600",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-generators",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1704632650, "lastModified": 1704632650,
@ -503,6 +526,7 @@
"libnbtplusplus": "libnbtplusplus", "libnbtplusplus": "libnbtplusplus",
"nix-filter": "nix-filter", "nix-filter": "nix-filter",
"nix-systems": "nix-systems", "nix-systems": "nix-systems",
"nixos-generators": "nixos-generators",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-lib": "nixpkgs-lib", "nixpkgs-lib": "nixpkgs-lib",

View file

@ -27,6 +27,11 @@
inputs.nix-filter.follows = "nix-filter"; inputs.nix-filter.follows = "nix-filter";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixlib.follows = "nixpkgs-lib";
};
tela-icon-theme = { tela-icon-theme = {
url = "github:vinceliuice/Tela-icon-theme"; url = "github:vinceliuice/Tela-icon-theme";
flake = false; flake = false;
@ -113,6 +118,14 @@
self.outputs.nixosModules.default self.outputs.nixosModules.default
]; ];
}; };
installer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./systems/installer
self.outputs.nixosModules.default
];
};
steamdeck = nixpkgs.lib.nixosSystem { steamdeck = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = inputs;

View file

@ -22,5 +22,6 @@
./users ./users
self.inputs.home-manager.nixosModules.home-manager self.inputs.home-manager.nixosModules.home-manager
self.inputs.kde2nix.nixosModules.plasma6 self.inputs.kde2nix.nixosModules.plasma6
self.inputs.nixos-generators.nixosModules.all-formats
]; ];
} }

View file

@ -0,0 +1,54 @@
{ config, pkgs, ... }:
{
jopejoe1 = {
audio = {
enable = true;
};
local.enable = true;
nix.enable = true;
plasma6.enable = true;
overlays.enable = true;
jopejoe1.enable = true;
root.enable = true;
};
networking = {
hostName = "installer";
};
nixpkgs = {
hostPlatform = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
};
};
time.timeZone = "Europe/Berlin";
environment.systemPackages = with pkgs; [
# Calamares for graphical installation
libsForQt5.kpmcore
calamares-nixos
(pkgs.makeAutostartItem { name = "io.calamares.calamares"; package = pkgs.calamares-nixos; })
calamares-nixos-extensions
# Get list of locales
glibcLocales
# Theming
catppuccin-kvantum
catppuccin-kde
catppuccin-gtk
tela-icon-theme
];
i18n.supportedLocales = [ "all" ];
programs = {
xwayland.enable = true;
kdeconnect.enable = true;
};
console = {
enable = true;
};
}