This commit is contained in:
dusk 2021-10-23 22:15:28 +03:00
parent 776fe9fb2f
commit e98bc0e392
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 36 additions and 154 deletions

View File

@ -210,16 +210,16 @@
"flakeCompat": "flakeCompat", "flakeCompat": "flakeCompat",
"nixCargoIntegration": "nixCargoIntegration", "nixCargoIntegration": "nixCargoIntegration",
"nixpkgs": [ "nixpkgs": [
"latest" "nixos"
], ],
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1634956879, "lastModified": 1634993538,
"narHash": "sha256-i0BFwMPjafzKxZ074iMuIl3mr+VaeYfBGh85At+Jttg=", "narHash": "sha256-4UBBfkxDanL4OL6xeB6BkiWNCXj6gFLp3/b+MB9Hos4=",
"ref": "master", "ref": "master",
"rev": "4ee92cad19cc94f0751f91fa9391d1899353d740", "rev": "0cb5e0b2caba61bbcf6f57ce58506882766d5eea",
"revCount": 1563, "revCount": 1565,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/helix-editor/helix.git" "url": "https://github.com/helix-editor/helix.git"
@ -237,16 +237,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1634544068, "lastModified": 1634939539,
"narHash": "sha256-RlRQBaAHfdWqfRyHdWuDPMkplBTYwuyDQqDcNbP/Sog=", "narHash": "sha256-m+RC6it1doMjq5U5e1B36thzOOBc1GF4tVLK2SNMvzg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "ff2bed9dac84fb202bbb3c49fdcfe30c29d0b12f", "rev": "8278c14f5f8725e1b5936d6f54e63d4626aae98c",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-21.05", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -267,22 +267,6 @@
"type": "github" "type": "github"
} }
}, },
"latest_2": {
"locked": {
"lastModified": 1633617995,
"narHash": "sha256-+RfYXTAXtULLSAMFDHWaA20NhNg3YQ9GcntVJqDDjSI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "70088dc29994c32f8520150e34c6e57e8453f895",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"rev": "70088dc29994c32f8520150e34c6e57e8453f895",
"type": "github"
}
},
"lowdown-src": { "lowdown-src": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -303,7 +287,7 @@
"naersk": { "naersk": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"latest" "nixos"
] ]
}, },
"locked": { "locked": {
@ -370,16 +354,16 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1634883236, "lastModified": 1634782485,
"narHash": "sha256-Z9ofgNzSmYVhs+STOAvk6QNy5KVsUmADOE+UIfur2ug=", "narHash": "sha256-psfh4OQSokGXG0lpq3zKFbhOo3QfoeudRcaUnwMRkQo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b0274abf85097e9a2da868b28a5532918dc14380", "rev": "34ad3ffe08adfca17fcb4e4a47bb5f3b113687be",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-21.05", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -458,7 +442,7 @@
"inputs": { "inputs": {
"cachix": "cachix", "cachix": "cachix",
"nixpkgs": [ "nixpkgs": [
"latest" "nixos"
] ]
}, },
"locked": { "locked": {
@ -481,7 +465,7 @@
"naersk" "naersk"
], ],
"nixpkgs": [ "nixpkgs": [
"latest" "nixos"
], ],
"utils": [ "utils": [
"digga", "digga",
@ -507,7 +491,6 @@
"digga": "digga", "digga": "digga",
"helix": "helix", "helix": "helix",
"home": "home", "home": "home",
"latest": "latest_2",
"naersk": "naersk", "naersk": "naersk",
"nixos": "nixos", "nixos": "nixos",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",

View File

@ -1,68 +1,52 @@
{ {
description = "A highly structured configuration database."; description = "A highly structured configuration database.";
nixConfig.extra-experimental-features = "nix-command flakes ca-references";
nixConfig.extra-substituters = "https://nrdxp.cachix.org https://nix-community.cachix.org";
nixConfig.extra-trusted-public-keys = "nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=";
inputs = inputs =
{ {
nixos.url = "github:nixos/nixpkgs/nixos-21.05"; nixos.url = "github:nixos/nixpkgs/nixos-unstable";
latest.url = "github:nixos/nixpkgs/70088dc29994c32f8520150e34c6e57e8453f895";
digga.url = "github:divnix/digga/main"; digga.url = "github:divnix/digga/main";
digga.inputs.nixpkgs.follows = "nixos"; digga.inputs.nixpkgs.follows = "nixos";
digga.inputs.nixlib.follows = "nixos"; digga.inputs.nixlib.follows = "nixos";
digga.inputs.home-manager.follows = "home"; digga.inputs.home-manager.follows = "home";
/*bud.url = "github:divnix/bud"; home.url = "github:nix-community/home-manager/master";
bud.inputs.nixpkgs.follows = "nixos";
bud.inputs.devshell.follows = "digga/devshell";*/
home.url = "github:nix-community/home-manager/release-21.05";
home.inputs.nixpkgs.follows = "nixos"; home.inputs.nixpkgs.follows = "nixos";
/*darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "latest";*/
/*agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "latest";*/
/*nvfetcher.url = "github:berberman/nvfetcher";
nvfetcher.inputs.nixpkgs.follows = "latest";
nvfetcher.inputs.flake-compat.follows = "digga/deploy/flake-compat";
nvfetcher.inputs.flake-utils.follows = "digga/flake-utils-plus/flake-utils";*/
naersk.url = "github:nmattia/naersk"; naersk.url = "github:nmattia/naersk";
naersk.inputs.nixpkgs.follows = "latest"; naersk.inputs.nixpkgs.follows = "nixos";
nixos-hardware.url = "github:nixos/nixos-hardware"; nixos-hardware.url = "github:nixos/nixos-hardware";
rnixLsp = { rnixLsp = {
url = "github:nix-community/rnix-lsp"; url = "github:nix-community/rnix-lsp";
inputs.naersk.follows = "naersk"; inputs.naersk.follows = "naersk";
inputs.nixpkgs.follows = "latest"; inputs.nixpkgs.follows = "nixos";
inputs.utils.follows = "digga/flake-utils"; inputs.utils.follows = "digga/flake-utils";
}; };
helix = { helix = {
url = "https://github.com/helix-editor/helix.git"; url = "https://github.com/helix-editor/helix.git";
type = "git"; type = "git";
submodules = true; submodules = true;
inputs.nixpkgs.follows = "latest"; inputs.nixpkgs.follows = "nixos";
}; };
nixosPersistence.url = "github:nix-community/impermanence"; nixosPersistence.url = "github:nix-community/impermanence";
nixpkgsWayland = { nixpkgsWayland = {
url = "github:colemickens/nixpkgs-wayland"; url = "github:colemickens/nixpkgs-wayland";
inputs.nixpkgs.follows = "latest"; inputs.nixpkgs.follows = "nixos";
}; };
}; };
outputs = outputs =
{ self { self
, digga , digga
#, bud
, nixos , nixos
, home , home
, nixos-hardware , nixos-hardware
#, nur
#, agenix
#, nvfetcher
, nixosPersistence , nixosPersistence
, nixpkgsWayland , nixpkgsWayland
, rnixLsp , rnixLsp
@ -79,22 +63,13 @@
nixos = { nixos = {
imports = [ (digga.lib.importOverlays ./overlays) ]; imports = [ (digga.lib.importOverlays ./overlays) ];
overlays = [ overlays = [
#digga.overlays.patchedNix #nixpkgsWayland.overlay
#nur.overlay
#agenix.overlay
#nvfetcher.overlay
#deploy.overlay
nixpkgsWayland.overlay
./pkgs/default.nix
];
};
latest = {
overlays = [
(_: prev: { (_: prev: {
helix = helix.packages.${prev.system}.helix; helix = helix.packages.${prev.system}.helix;
helix-src = prev.helix.src; helix-src = prev.helix.src;
rnix-lsp = rnixLsp.packages.${prev.system}.rnix-lsp; rnix-lsp = rnixLsp.packages.${prev.system}.rnix-lsp;
}) })
./pkgs/default.nix
]; ];
}; };
}; };
@ -120,8 +95,6 @@
digga.nixosModules.bootstrapIso digga.nixosModules.bootstrapIso
digga.nixosModules.nixConfig digga.nixosModules.nixConfig
home.nixosModules.home-manager home.nixosModules.home-manager
#agenix.nixosModules.age
#bud.nixosModules.bud
nixosPersistence.nixosModules.impermanence nixosPersistence.nixosModules.impermanence
]; ];
}; };
@ -156,14 +129,6 @@
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations; homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { }; deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { };
/*defaultTemplate = self.templates.bud;
templates.bud.path = ./.;
templates.bud.description = "bud template";*/
}
//
{
# budModules = { devos = import ./bud; };
} }
; ;
} }

View File

@ -227,7 +227,7 @@ in
}; };
}; };
virtualisation = { virtualisation = {
podman.enable = true; podman.enable = false;
libvirtd.enable = false; libvirtd.enable = false;
}; };

View File

@ -1,51 +1,3 @@
channels: final: prev: { channels: final: prev: {
__dontExport = true; # overrides clutter up actual creations __dontExport = true; # overrides clutter up actual creations
inherit (channels.latest)
cachix
dhall
discord
element-desktop
rage
nixpkgs-fmt
qutebrowser
signal-desktop
starship
hydrus
steam
steam-run
lutris
rust-analyzer
vscodium
vscode
gh
chromium-unwrapped
chromium
sublime4
git
git-lfs
helix
rnix-lsp
vscode-extensions
vscode-utils
nixUnstable
bottom
bat
ripgrep
alacritty
;
libnotify-latest = channels.latest.libnotify;
haskellPackages = prev.haskellPackages.override
(old: {
overrides = prev.lib.composeExtensions (old.overrides or (_: _: { })) (hfinal: hprev:
let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version;
in
{
# same for haskell packages, matching ghc versions
inherit (channels.latest.haskell.packages."ghc${version}")
haskell-language-server;
});
});
} }

View File

@ -11,7 +11,7 @@ in
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
home = "/home/patriot"; home = "/home/patriot";
extraGroups = [ "wheel" "adbusers" "dialout" "wireshark" ]; extraGroups = [ "wheel" "adbusers" "dialout" /* "wireshark" */ ];
shell = pkgs.zsh; shell = pkgs.zsh;
hashedPassword = hashedPassword =
"$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/"; "$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/";
@ -36,10 +36,10 @@ in
adb.enable = true; adb.enable = true;
steam.enable = true; steam.enable = true;
java = { java = {
enable = true; enable = false;
package = pkgs.adoptopenjdk-jre-bin; package = pkgs.adoptopenjdk-jre-bin;
}; };
wireshark.enable = true; wireshark.enable = false;
}; };
security.pam.services.patriot = { security.pam.services.patriot = {
@ -286,7 +286,7 @@ in
kdenlive kdenlive
gnome3.seahorse gnome3.seahorse
gnome3.gnome-boxes gnome3.gnome-boxes
wine-staging #wine-staging
cachix cachix
appimage-run appimage-run
bitwarden bitwarden
@ -323,9 +323,9 @@ in
unset VK_ICD_FILENAMES unset VK_ICD_FILENAMES
export VK_ICD_FILENAMES=${nixosConfig.environment.variables.VK_ICD_FILENAMES}''; export VK_ICD_FILENAMES=${nixosConfig.environment.variables.VK_ICD_FILENAMES}'';
})) }))
(multimc.overrideAttrs (old: { /*(multimc.overrideAttrs (old: {
src = builtins.fetchGit { url = "https://github.com/AfoninZ/MultiMC5-Cracked.git"; ref = "develop"; rev = "9069e9c9d0b7951c310fdcc8bdc70ebc422a7634"; submodules = true; }; src = builtins.fetchGit { url = "https://github.com/AfoninZ/MultiMC5-Cracked.git"; ref = "develop"; rev = "9069e9c9d0b7951c310fdcc8bdc70ebc422a7634"; submodules = true; };
})) }))*/
]; ];
}; };
@ -576,26 +576,8 @@ in
in in
{ {
enable = true; enable = true;
colors = { cycle = true;
window = {
background = bgc;
border = bgc;
separator = bgc;
};
rows = {
normal = {
background = bgc;
foreground = fgc;
backgroundAlt = bgc;
highlight = {
background = bgc;
foreground = acc;
};
};
};
};
font = fontComb; font = fontComb;
separator = "none";
terminal = pkgBin "alacritty"; terminal = pkgBin "alacritty";
}; };
vscode = { vscode = {