update nixos
This commit is contained in:
parent
4768c4b0c3
commit
a9d83b0cd0
@ -196,7 +196,7 @@
|
|||||||
joinNetworks = [ "93afae5963c6858e" ];
|
joinNetworks = [ "93afae5963c6858e" ];
|
||||||
};
|
};
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
gnome3.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -208,7 +208,6 @@
|
|||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
autoOptimiseStore = true;
|
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
@ -216,7 +215,10 @@
|
|||||||
"nixpkgs=${pkgs.path}"
|
"nixpkgs=${pkgs.path}"
|
||||||
"nixos-config=/etc/nixos/configuration.nix"
|
"nixos-config=/etc/nixos/configuration.nix"
|
||||||
];
|
];
|
||||||
trustedUsers = [ "root" "illustris" ];
|
settings = {
|
||||||
|
trusted-users = [ "root" "illustris" ];
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
|
|||||||
@ -23,7 +23,6 @@
|
|||||||
picom = {
|
picom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
vSync = true;
|
vSync = true;
|
||||||
refreshRate = 60;
|
|
||||||
#backend = "xr_glx_hybrid";
|
#backend = "xr_glx_hybrid";
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
};
|
};
|
||||||
@ -95,7 +94,7 @@
|
|||||||
perlPackages.AppClusterSSH
|
perlPackages.AppClusterSSH
|
||||||
x11vnc
|
x11vnc
|
||||||
#kcachegrind
|
#kcachegrind
|
||||||
#remmina
|
remmina
|
||||||
insomnia
|
insomnia
|
||||||
vlc
|
vlc
|
||||||
openhmd
|
openhmd
|
||||||
|
|||||||
@ -34,11 +34,6 @@
|
|||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
#"/var/lib/steam" = {
|
|
||||||
# device = "ssd/steam";
|
|
||||||
# fsType = "zfs";
|
|
||||||
#};
|
|
||||||
|
|
||||||
"/tmp" = {
|
"/tmp" = {
|
||||||
device = "ssd/tmp";
|
device = "ssd/tmp";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
|
|||||||
@ -5,10 +5,10 @@
|
|||||||
"homepage": "https://github.com/nmattia/niv",
|
"homepage": "https://github.com/nmattia/niv",
|
||||||
"owner": "nmattia",
|
"owner": "nmattia",
|
||||||
"repo": "niv",
|
"repo": "niv",
|
||||||
"rev": "9cb7ef336bb71fd1ca84fc7f2dff15ef4b033f2a",
|
"rev": "82e5cd1ad3c387863f0545d7591512e76ab0fc41",
|
||||||
"sha256": "1ajyqr8zka1zlb25jx1v4xys3zqmdy3prbm1vxlid6ah27a8qnzh",
|
"sha256": "090l219mzc0gi33i3psgph6s2pwsc8qy4lyrqjdj4qzkvmaj65a7",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/nmattia/niv/archive/9cb7ef336bb71fd1ca84fc7f2dff15ef4b033f2a.tar.gz",
|
"url": "https://github.com/nmattia/niv/archive/82e5cd1ad3c387863f0545d7591512e76ab0fc41.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
@ -17,10 +17,10 @@
|
|||||||
"homepage": "",
|
"homepage": "",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58",
|
"rev": "e494a908e8895b9cba18e21d5fc83362f64b3f6a",
|
||||||
"sha256": "01j7nhxbb2kjw38yk4hkjkkbmz50g3br7fgvad6b1cjpdvfsllds",
|
"sha256": "1w03pdgk9xbx7hwiib2hixlalnfwxn6zr1j1g384r9z1hnpnggj4",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs/archive/e494a908e8895b9cba18e21d5fc83362f64b3f6a.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,8 +31,28 @@ let
|
|||||||
if spec ? branch then "refs/heads/${spec.branch}" else
|
if spec ? branch then "refs/heads/${spec.branch}" else
|
||||||
if spec ? tag then "refs/tags/${spec.tag}" else
|
if spec ? tag then "refs/tags/${spec.tag}" else
|
||||||
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!";
|
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!";
|
||||||
|
submodules = if spec ? submodules then spec.submodules else false;
|
||||||
|
submoduleArg =
|
||||||
|
let
|
||||||
|
nixSupportsSubmodules = builtins.compareVersions builtins.nixVersion "2.4" >= 0;
|
||||||
|
emptyArgWithWarning =
|
||||||
|
if submodules == true
|
||||||
|
then
|
||||||
|
builtins.trace
|
||||||
|
(
|
||||||
|
"The niv input \"${name}\" uses submodules "
|
||||||
|
+ "but your nix's (${builtins.nixVersion}) builtins.fetchGit "
|
||||||
|
+ "does not support them"
|
||||||
|
)
|
||||||
|
{}
|
||||||
|
else {};
|
||||||
in
|
in
|
||||||
builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; };
|
if nixSupportsSubmodules
|
||||||
|
then { inherit submodules; }
|
||||||
|
else emptyArgWithWarning;
|
||||||
|
in
|
||||||
|
builtins.fetchGit
|
||||||
|
({ url = spec.repo; inherit (spec) rev; inherit ref; } // submoduleArg);
|
||||||
|
|
||||||
fetch_local = spec: spec.path;
|
fetch_local = spec: spec.path;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user