diff --git a/homes/x86_64-linux/julian@aspi/default.nix b/homes/x86_64-linux/julian@aspi/default.nix index b859886..510fffd 100644 --- a/homes/x86_64-linux/julian@aspi/default.nix +++ b/homes/x86_64-linux/julian@aspi/default.nix @@ -27,7 +27,7 @@ home.stateVersion = "23.11"; modules = { - non-nixos.is-nxos = false; + non-nixos.is-nixos = false; shell = { # zsh.enable = true; fish.enable = true; diff --git a/homes/x86_64-linux/julian@kardorf/default.nix b/homes/x86_64-linux/julian@kardorf/default.nix index 7600cdc..d7f3829 100644 --- a/homes/x86_64-linux/julian@kardorf/default.nix +++ b/homes/x86_64-linux/julian@kardorf/default.nix @@ -28,7 +28,6 @@ modules = { shell = { - # zsh.enable = true; fish.enable = true; direnv.enable = true; }; diff --git a/homes/x86_64-linux/julian@pianonix/default.nix b/homes/x86_64-linux/julian@pianonix/default.nix index 94c9d69..1bdadf6 100644 --- a/homes/x86_64-linux/julian@pianonix/default.nix +++ b/homes/x86_64-linux/julian@pianonix/default.nix @@ -38,10 +38,6 @@ home.packages = with pkgs; [ ]; - home.sessionVariables = { - FLAKE = "/home/julian/.dotfiles"; - }; - # Let Home Manager install and manage itself. programs.home-manager.enable = true; } diff --git a/modules/home/i3/default.nix b/modules/home/i3/default.nix index 4cbe30e..4522bc4 100644 --- a/modules/home/i3/default.nix +++ b/modules/home/i3/default.nix @@ -1,50 +1,62 @@ { -# Snowfall Lib provides a customized `lib` instance with access to your flake's library -# as well as the libraries available from your flake's inputs. -lib, -# An instance of `pkgs` with your overlays and packages applied is also available. -pkgs, -# You also have access to your flake's inputs. -inputs, + # Snowfall Lib provides a customized `lib` instance with access to your flake's library + # as well as the libraries available from your flake's inputs. + lib, + # An instance of `pkgs` with your overlays and packages applied is also available. + pkgs, + # You also have access to your flake's inputs. + inputs, -# Additional metadata is provided by Snowfall Lib. -system, # The system architecture for this host (eg. `x86_64-linux`). -target, # The Snowfall Lib target for this system (eg. `x86_64-iso`). -format, # A normalized name for the system target (eg. `iso`). -virtual -, # A boolean to determine whether this system is a virtual target using nixos-generators. -systems, # An attribute map of your defined hosts. + # Additional metadata is provided by Snowfall Lib. + system, # The system architecture for this host (eg. `x86_64-linux`). + target, # The Snowfall Lib target for this system (eg. `x86_64-iso`). + format, # A normalized name for the system target (eg. `iso`). + virtual, # A boolean to determine whether this system is a virtual target using nixos-generators. + systems, # An attribute map of your defined hosts. -# All other arguments come from the module system. -config, host, ... }: + # All other arguments come from the module system. + config, + host, + ... +}: with lib; -let cfg = config.modules.i3; -in { - options.modules.i3 = { enable = mkOption { default = false; }; }; +let + cfg = config.modules.i3; +in +{ + options.modules.i3 = { + enable = mkOption { default = false; }; + }; config = mkIf cfg.enable { - programs = { i3status-rust = { enable = true; }; }; + programs = { + i3status-rust = { + enable = true; + }; + }; home.packages = with pkgs; [ nitrogen ]; - xsession.windowManager.i3 = { enable = true; }; + xsession.windowManager.i3 = { + enable = true; + }; # Overwrite default home-manager config file - xdg.configFile."i3/config".source = lib.mkForce (if host == "kardorf" then - ./i3/config-kardorf - else - lib.mkForce ./i3/config); + xdg.configFile."i3/config".source = lib.mkForce ( + if host == "kardorf" then ./i3/config-kardorf else ./i3/config + ); home.file = { ".config/i3/scripts" = { source = ./i3/scripts; recursive = true; }; - ".config/i3/workspace-messaging.json".source = - ./i3/workspace-chat-element-tele.json; + ".config/i3/workspace-messaging.json".source = ./i3/workspace-chat-element-tele.json; ".config/i3status-rust/config.toml".source = ./i3status-rust/config.toml; }; - home.file = { ".profile".source = ./.profile; }; + home.file = { + ".profile".source = ./.profile; + }; }; } diff --git a/systems/x86_64-linux/nix-builder/default.nix b/systems/x86_64-linux/nix-builder/default.nix index 80e12f4..f3023ea 100644 --- a/systems/x86_64-linux/nix-builder/default.nix +++ b/systems/x86_64-linux/nix-builder/default.nix @@ -7,7 +7,8 @@ { config, pkgs, ... }: { - imports = [ # Include the results of the hardware scan. + imports = [ + # Include the results of the hardware scan. ./hardware-configuration.nix ]; @@ -54,20 +55,26 @@ users.users.nix = { isNormalUser = true; description = "Nix"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ + "networkmanager" + "wheel" + ]; packages = with pkgs; [ ]; }; nix.settings.trusted-users = [ "@wheel" ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; # Setup binary caches nix.settings = { - substituters = - [ "https://nix-community.cachix.org" "https://cache.nixos.org/" ]; - trusted-public-keys = [ - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + substituters = [ + "https://nix-community.cachix.org" + "https://cache.nixos.org/" ]; + trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; }; # optimize store by hardlinking store files @@ -89,7 +96,11 @@ # List packages installed in system profile. To search, run: # $ nix search wget - environment.systemPackages = with pkgs; [ vim htop mc ]; + environment.systemPackages = with pkgs; [ + vim + htop + mc + ]; # Enable the OpenSSH daemon. services.openssh.enable = true; @@ -99,7 +110,7 @@ acceleration = "cuda"; }; - security.pam.enableSSHAgentAuth = true; # enable sudo logins via ssh + security.pam.sshAgentAuth = true; # enable sudo logins via ssh # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; @@ -114,5 +125,4 @@ # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.11"; # Did you read the comment? - }