stuff
This commit is contained in:
parent
7395765b09
commit
b1432b7337
4
.envrc
4
.envrc
@ -1,2 +1,2 @@
|
|||||||
watch_file shell/* flake.nix
|
watch_file shells/* flake.nix flake.lock
|
||||||
use flake || use nix
|
eval "$(nix print-dev-env)"
|
14
flake.lock
14
flake.lock
@ -23,11 +23,11 @@
|
|||||||
},
|
},
|
||||||
"latest": {
|
"latest": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1649225869,
|
"lastModified": 1649408932,
|
||||||
"narHash": "sha256-u1zLtPmQzhT9mNXyM8Ey9pk7orDrIKdwooeGDEXm5xM=",
|
"narHash": "sha256-JhTW1OtS5fACcRXLqcTTQyYO5vLkO+bceCqeRms13SY=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b6966d911da89e5a7301aaef8b4f0a44c77e103c",
|
"rev": "42948b300670223ca8286aaf916bc381f66a5313",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -39,16 +39,16 @@
|
|||||||
},
|
},
|
||||||
"nixos": {
|
"nixos": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1649504202,
|
"lastModified": 1649490789,
|
||||||
"narHash": "sha256-k7BZoTGeNqz+jy0v0kKl3jSa+6Q4Dx1FPpZFF9+u9nA=",
|
"narHash": "sha256-YrhVxwoofZSx/wLZ4GYET//8vS+uqWX572zvdmP/Etg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "27b0c3988745d1b18607744badaf2add79c8bcea",
|
"rev": "c86185d20d708013caf97a6adaa8dc6d72313c75",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "release-21.11",
|
"ref": "nixos-21.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
description = "config!!!";
|
description = "config!!!";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixos.url = "github:nixos/nixpkgs/release-21.11";
|
nixos.url = "github:nixos/nixpkgs/nixos-21.11";
|
||||||
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
latest.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
home.url = "github:nix-community/home-manager/release-21.11";
|
home.url = "github:nix-community/home-manager/release-21.11";
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
modules =
|
modules =
|
||||||
baseModules
|
baseModules
|
||||||
++ [
|
++ [
|
||||||
|
{networking.hostName = name;}
|
||||||
{nixpkgs.pkgs = pkgs;}
|
{nixpkgs.pkgs = pkgs;}
|
||||||
(import (./. + "/${name}/default.nix"))
|
(import (./. + "/${name}/default.nix"))
|
||||||
];
|
];
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
{config, ...}: {
|
{config, ...}: {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
home.sessionVariables = {inherit (config.environment.sessionVariables) NIX_PATH;};
|
home.sessionVariables = {inherit (config.environment.sessionVariables) NIX_PATH;};
|
||||||
xdg.configFile."nix/registry.json".text = config.environment.etc."nix/registry.json".text;
|
xdg.configFile."nix/registry.json".text = config.environment.etc."nix/registry.json".text;
|
||||||
|
xdg.configFile."nix/nix.conf".source = config.environment.etc."nix/nix.conf".source;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -14,10 +14,12 @@
|
|||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
fallback = true
|
fallback = true
|
||||||
|
extra-experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
useSandbox = true;
|
useSandbox = true;
|
||||||
allowedUsers = ["@wheel"];
|
allowedUsers = ["@wheel"];
|
||||||
trustedUsers = ["root" "@wheel"];
|
trustedUsers = ["root" "@wheel"];
|
||||||
autoOptimiseStore = true;
|
autoOptimiseStore = true;
|
||||||
|
nixPath = ["nixpkgs=${inputs.latest}" "home-manager=${inputs.home}"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
|
||||||
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
||||||
in {
|
in {
|
||||||
#inherit imports;
|
inherit imports;
|
||||||
nix.binaryCaches = ["https://cache.nixos.org/"];
|
nix.binaryCaches = ["https://cache.nixos.org/"];
|
||||||
}
|
}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.substituters = ["https://harmony.cachix.org"];
|
|
||||||
binaryCachePublicKeys = ["harmony.cachix.org-1:yv78QZHgS0UHkrMW56rccNghWHRz18fFRl8mWQ63M6E="];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.substituters = ["https://nix-cargo-integration.cachix.org"];
|
|
||||||
binaryCachePublicKeys = ["nix-cargo-integration.cachix.org-1:wphySON/RyTC2DCzwKPBQGLEZv5mj0s1I1lsfQObaLs="];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings.substituters = ["https://nix-community.cachix.org"];
|
binaryCaches = ["https://nix-community.cachix.org"];
|
||||||
binaryCachePublicKeys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];
|
binaryCachePublicKeys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.substituters = ["https://nixpkgs-wayland.cachix.org"];
|
|
||||||
binaryCachePublicKeys = ["nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.substituters = ["https://nrdxp.cachix.org"];
|
|
||||||
binaryCachePublicKeys = ["nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4="];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.substituters = ["https://veloren-nix.cachix.org"];
|
|
||||||
binaryCachePublicKeys = ["veloren-nix.cachix.org-1:zokfKJqVsNV6kI/oJdLF6TYBdNPYGSb+diMVQPn/5Rc="];
|
|
||||||
};
|
|
||||||
}
|
|
@ -5,7 +5,11 @@ pkgs: {
|
|||||||
alejandra
|
alejandra
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
chromium
|
chromium
|
||||||
|
rofi
|
||||||
rofi-wayland
|
rofi-wayland
|
||||||
vscode
|
vscode
|
||||||
|
nixUnstable
|
||||||
|
nix-direnv
|
||||||
|
direnv
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,6 @@ in {
|
|||||||
"${mod}+q" = "kill";
|
"${mod}+q" = "kill";
|
||||||
"${mod}+Shift+e" = "exit";
|
"${mod}+Shift+e" = "exit";
|
||||||
"${mod}+Shift+r" = "reload";
|
"${mod}+Shift+r" = "reload";
|
||||||
"${mod}+c" = mkRofiCmd ["-show" "calc"];
|
|
||||||
# Screenshot and copy it to clipboard
|
# Screenshot and copy it to clipboard
|
||||||
"Mod1+s" = ''
|
"Mod1+s" = ''
|
||||||
exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png
|
exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png
|
||||||
@ -556,15 +555,6 @@ in {
|
|||||||
cycle = true;
|
cycle = true;
|
||||||
font = fontComb;
|
font = fontComb;
|
||||||
terminal = pkgBin "alacritty";
|
terminal = pkgBin "alacritty";
|
||||||
plugins = with pkgs; [
|
|
||||||
rofi-calc
|
|
||||||
rofi-systemd
|
|
||||||
rofi-file-browser
|
|
||||||
rofi-power-menu
|
|
||||||
];
|
|
||||||
extraConfig = {
|
|
||||||
modi = "drun,calc,file-browser-extended,ssh,keys";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
vscode = {
|
vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -705,8 +695,6 @@ in {
|
|||||||
theme = "mytheme"
|
theme = "mytheme"
|
||||||
[editor]
|
[editor]
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
[lsp]
|
|
||||||
display-messages = true
|
|
||||||
'';
|
'';
|
||||||
"helix/languages.toml".text = ''
|
"helix/languages.toml".text = ''
|
||||||
[[language]]
|
[[language]]
|
||||||
|
Loading…
Reference in New Issue
Block a user