Skip to content

Commit

Permalink
Update NixOS and HM to 23.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pdalpra committed Dec 3, 2023
1 parent 8aec671 commit df3a13c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 30 deletions.
16 changes: 8 additions & 8 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
nixConfig.bash-prompt = "\[nix-config-dev\]$ ";

inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nurpkgs.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
Expand Down
2 changes: 1 addition & 1 deletion home/modules/cli/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ in
direnv = enableWithZshIntegration // {
nix-direnv.enable = true;
};
exa = {
eza = {
enable = true;
enableAliases = true;
};
Expand Down
2 changes: 1 addition & 1 deletion home/modules/cli/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
programs.zsh = {
enable = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
syntaxHighlighting.enable = true;
autocd = true;

prezto = {
Expand Down
1 change: 0 additions & 1 deletion home/modules/dev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ builtins.filter builtins.pathExists [
./git-extra.nix
./go.nix
./jvm.nix
./misc.nix
./rust.nix
]
7 changes: 0 additions & 7 deletions home/modules/dev/misc.nix

This file was deleted.

13 changes: 3 additions & 10 deletions system/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

let
nixSystemPath = "/nix/var/nix/profiles/system";
nixosListGens = pkgs.writeShellScriptBin "nixos-list-gens"
''nix-env -p ${nixSystemPath} --list-generations'';
nixosRollbackAnyGen = pkgs.writeShellScriptBin "nixos-rollback-any-gen" ''
nix-env --switch-generation $1 -p ${nixSystemPath}
${nixSystemPath}/bin/switch-to-configuration switch
'';
doasSudo = pkgs.writeShellScriptBin "sudo" ''doas "$@"'';
nerdFonts = pkgs.nerdfonts.override {
fonts = [
"FiraCode"
Expand All @@ -34,16 +31,14 @@ in
nix-du
nix-index
# Custom shell scripts
doasSudo
nixosListGens
nixosRollbackAnyGen
];
};

fonts = {
enableDefaultFonts = true;
enableDefaultPackages = true;
fontDir.enable = true;
fonts = [
packages = [
nerdFonts
];
};
Expand All @@ -66,12 +61,10 @@ in
};

security = {
doas = {
sudo = {
enable = true;
wheelNeedsPassword = false;
};

sudo.enable = false;
};

services = {
Expand Down

0 comments on commit df3a13c

Please sign in to comment.