Compare commits
No commits in common. "db5366102b472624294fd1248abc0f647e54bca1" and "9c0b46c7d3e140be7099dc9460c01f7536b3a38d" have entirely different histories.
db5366102b
...
9c0b46c7d3
13 changed files with 69 additions and 119 deletions
|
|
@ -10,10 +10,7 @@
|
|||
}:
|
||||
|
||||
{
|
||||
nix.settings.experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
];
|
||||
nix.settings.experimental-features = [ "flakes" "nix-command" ];
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
|
|
@ -22,25 +22,22 @@
|
|||
marty-pc = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./marty-pc.nix
|
||||
./configuration.nix
|
||||
|
||||
./marty-pc.nix
|
||||
];
|
||||
};
|
||||
marty-server = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64";
|
||||
modules = [
|
||||
./marty-server.nix
|
||||
./configuration.nix
|
||||
|
||||
./marty-server.nix
|
||||
];
|
||||
};
|
||||
marty-latitude = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64";
|
||||
modules = [
|
||||
./marty-latitude.nix
|
||||
./configuration.nix
|
||||
|
||||
./marty-latitude.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
29
imports.nix
29
imports.nix
|
|
@ -5,30 +5,9 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./system/import_system.nix
|
||||
./modules/imports.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./system/import_system.nix
|
||||
./modules/imports.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
./system/import_system.nix
|
||||
./modules/imports.nix
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = modules;
|
||||
imports = [
|
||||
./system/imports.nix
|
||||
./modules/imports.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
./git.nix
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = modules;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./development/import_development.nix
|
||||
./window_manager/import_wm.nix
|
||||
|
||||
];
|
||||
}
|
||||
14
modules/imports.nix
Normal file
14
modules/imports.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./window_manager/imports.nix
|
||||
./git.nix
|
||||
./vscodium.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -5,11 +5,21 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_vscode =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
enable = enable_vscode;
|
||||
package = pkgs.vscodium;
|
||||
defaultEditor = true;
|
||||
defaultEditor = enable_vscode;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
|
|
@ -5,14 +5,23 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_hyprland =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
{
|
||||
programs = {
|
||||
hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
enable = enable_hyprland;
|
||||
xwayland.enable = enable_hyprland;
|
||||
};
|
||||
hyprlock = {
|
||||
enable = true;
|
||||
enable = enable_hyprland;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
modules =
|
||||
if config.networking.hostName == "marty-pc" then
|
||||
[
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
]
|
||||
else if config.networking.hostName == "marty-latitude" then
|
||||
[
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
]
|
||||
else if config.networking.hostName == "marty-server" then
|
||||
[
|
||||
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
in
|
||||
|
||||
{
|
||||
imports = modules;
|
||||
}
|
||||
13
modules/window_manager/imports.nix
Normal file
13
modules/window_manager/imports.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./waybar.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -5,10 +5,19 @@
|
|||
...
|
||||
}:
|
||||
|
||||
let
|
||||
enable_waybar =
|
||||
if config.networking.hostName == "marty-pc"
|
||||
then true
|
||||
else if config.networking.hostName == "marty-latitude"
|
||||
then true
|
||||
else false;
|
||||
in
|
||||
|
||||
{
|
||||
programs = {
|
||||
waybar = {
|
||||
enable = true;
|
||||
enable = enable_waybar;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,5 @@
|
|||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue