mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 04:14:08 +02:00
This commit is contained in:
parent
4d110c5f62
commit
6c1b973d93
19
flake.nix
19
flake.nix
@ -1,5 +1,6 @@
|
||||
{
|
||||
description = "Moe.OS";
|
||||
|
||||
# Define Inputs
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
@ -19,9 +20,9 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
# Define Outputs, import Modules
|
||||
outputs =
|
||||
{
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
jovian,
|
||||
@ -35,6 +36,7 @@
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
lib = nixpkgs.lib;
|
||||
|
||||
# NixOS Modules for all hosts
|
||||
systemModules = [
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
@ -52,6 +54,7 @@
|
||||
./modules/system/upgrades
|
||||
./modules/system/users
|
||||
];
|
||||
|
||||
# Home Manager Modules for all hosts
|
||||
userModules = [
|
||||
./modules/user/git
|
||||
@ -62,7 +65,6 @@
|
||||
{
|
||||
nixosConfigurations = {
|
||||
# Workstation config
|
||||
# user and hostName variable inside hostConfig so we can call it in other modules
|
||||
workstation =
|
||||
let
|
||||
user = "mo";
|
||||
@ -103,9 +105,8 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Steamdeck config
|
||||
# user and hostName variable inside hostConfig so we can call it in other modules
|
||||
steamdeck =
|
||||
let
|
||||
user = "deck";
|
||||
@ -145,6 +146,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Konsole config
|
||||
konsole =
|
||||
let
|
||||
user = "deck";
|
||||
@ -184,6 +186,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Server config
|
||||
server =
|
||||
let
|
||||
user = "administrator";
|
||||
@ -205,14 +208,12 @@
|
||||
./modules/system/syncthing
|
||||
{
|
||||
# Device specific Home Manager Modules
|
||||
home-manager.users.${user}.imports = userModules ++ [
|
||||
];
|
||||
home-manager.users.${user}.imports = userModules;
|
||||
# Issue with Plasma Manager, has to be imported in a special way
|
||||
home-manager.sharedModules = [];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user