Restructure
This commit is contained in:
parent
8a2051abee
commit
45a4649c6b
|
@ -8,11 +8,11 @@
|
|||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-DuhR3y0gPZG0AJ2FDd+nUKzQMwT+c/DFIUWNDQ5Uyx4=",
|
||||
"path": "/nix/store/62wvwsq5r9rmlv9y8gmx7jndgk2kbhsg-source/home/ags",
|
||||
"path": "/nix/store/k25y4bqyl7cxf8pjl1wa7qaxj4lc0z4a-source/home/ags",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"path": "/nix/store/62wvwsq5r9rmlv9y8gmx7jndgk2kbhsg-source/home/ags",
|
||||
"path": "/nix/store/k25y4bqyl7cxf8pjl1wa7qaxj4lc0z4a-source/home/ags",
|
||||
"type": "path"
|
||||
}
|
||||
},
|
||||
|
|
21
flake.nix
21
flake.nix
|
@ -43,15 +43,8 @@
|
|||
(self: super: { utillinux = super.util-linux; })
|
||||
]; }
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
networking.hostName = host;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
"https://hyprland.cachix.org"
|
||||
|
@ -67,14 +60,6 @@
|
|||
trusted-users = [ "root" user ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 2d";
|
||||
};
|
||||
|
||||
|
||||
users.users.${user} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
|
@ -91,16 +76,12 @@
|
|||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # hint electron apps to use wayland:
|
||||
}
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
}; # allows access to flake inputs in hm modules
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.${user} = { imports = [ ./home/${host}.nix ]; };
|
||||
|
|
|
@ -2,32 +2,15 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
(import ./utils/desktop.nix { inherit inputs config pkgs; })
|
||||
(import ./utils/common.nix { inherit inputs config pkgs; })
|
||||
(import ./utils/python.nix { inherit inputs config pkgs; })
|
||||
./ssh
|
||||
];
|
||||
|
||||
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Riva/id_ed25519";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
distrobox
|
||||
wl-clipboard
|
||||
jq
|
||||
evince
|
||||
];
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
"$mainMod" = pkgs.lib.mkForce "ALT_L";
|
||||
"$altMod" = pkgs.lib.mkForce "SUPER";
|
||||
monitor = [
|
||||
"Virtual-1,2000x1200@60,0x0,1"
|
||||
];
|
||||
general.gaps_out = 1;
|
||||
};
|
||||
services.hyprpaper = {
|
||||
settings = {
|
||||
wallpaper = [
|
||||
"Virtual-1,${./hyprland/files/wallpaper.png}"
|
||||
];
|
||||
};
|
||||
};
|
||||
programs.alacritty.settings.font.size = 12;
|
||||
programs.kitty.font.size = 12;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # hint electron apps to use wayland:
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
security.polkit.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
networking.firewall.enable = false;
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.memtest86.enable = true;
|
||||
boot.loader.systemd-boot.netbootxyz.enable = true;
|
||||
boot.loader.timeout = 1;
|
||||
|
@ -54,6 +58,12 @@
|
|||
docker-compose
|
||||
];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 2d";
|
||||
};
|
||||
|
||||
virtualisation.containers.enable = true;
|
||||
virtualisation = {
|
||||
podman = {
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
@ -4,7 +4,6 @@ let
|
|||
in {
|
||||
imports = [
|
||||
(import ../Common/default.nix { inherit inputs config pkgs; })
|
||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
||||
(import ../Common/nfs.nix { inherit pkgs serverIP; })
|
||||
];
|
||||
|
||||
|
@ -26,13 +25,4 @@ in {
|
|||
}];
|
||||
};
|
||||
};
|
||||
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.greetd.enable = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue