Generic commit

minor changes to hosts:Satori and home:natto
This commit is contained in:
2021-12-25 08:01:59 +05:30
parent 6130b448e0
commit 8b4212aa27
11 changed files with 237 additions and 188 deletions

237
flake.lock generated
View File

@@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1637793790, "lastModified": 1638837456,
"narHash": "sha256-oPXavjxETEWGXq8g7kQHyRLKUmLX2yPtGn+t3V0mrTY=", "narHash": "sha256-WHLOxthAGx/wXw3QUa/lFE3mr6cQtnXfFYZ0DNyYwt4=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "f85eea0e29fa9a8924571d0e398215e175f80d55", "rev": "57806bf7e340f4cae705c91748d4fdf8519293a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -36,11 +36,11 @@
}, },
"emacs": { "emacs": {
"locked": { "locked": {
"lastModified": 1638146980, "lastModified": 1640256373,
"narHash": "sha256-tb5Wj3NI812IiMHhYruw3UVt6vPicHC1NpLGKyTP2uI=", "narHash": "sha256-ipzq2W+905/qFEkPcgJoSg7jUDbp9J8F7IEAL7xqE0A=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "58236c2d03c4405a560f12cb7536251973f551e0", "rev": "abce25bc28ffff32f6beb7b3072753116a2b7fcf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -67,11 +67,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1623875721, "lastModified": 1634851050,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", "narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", "rev": "c91f3de5adaf1de973b797ef7485e441a65b8935",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -95,16 +95,31 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_3": {
"locked": {
"lastModified": 1637014545,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1638150501, "lastModified": 1640126586,
"narHash": "sha256-aWH3MRmjUtx8ciSGLegBJC5mhymsuroHPs74ZldrNTU=", "narHash": "sha256-Brja0wQZFSl+hduOcBfE/oVPs0QattbILSMHC7/9fEg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9de77227d7780518cfeaee5a917970247f3ecc56", "rev": "1b03a8ab7af9385b70b7d7c319c4a31a58c5cfa5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -118,16 +133,16 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1637917894, "lastModified": 1639871969,
"narHash": "sha256-mzkyjq+OW1K5XHG43zrnjJX/K1ehahVWlKjMzWX/Vvg=", "narHash": "sha256-6feWUnMygRzA9tzkrfAzpA5/NBYg75bkFxnqb1DtD7E=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "7efd99ef876c220848553ae10218685d5e5d79cb", "rev": "697cc8c68ed6a606296efbbe9614c32537078756",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-21.05", "ref": "release-21.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@@ -137,14 +152,15 @@
"blobs": "blobs", "blobs": "blobs",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_4",
"nixpkgs-21_05": "nixpkgs-21_05", "nixpkgs-21_05": "nixpkgs-21_05",
"nixpkgs-21_11": "nixpkgs-21_11",
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1637902663, "lastModified": 1638911354,
"narHash": "sha256-6ExA+6vPfkHodMoAaCIVLC3BGeF/q28sShHoiusXD6g=", "narHash": "sha256-hNhzLOp+dApEY15vwLAQZu+sjEQbJcOXCaSfAT6lpsQ=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "822c5f22bd6e43b6b4a772045756ebf6a00cd884", "rev": "6e3a7b2ea6f0d68b82027b988aa25d3423787303",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -155,11 +171,11 @@
}, },
"master": { "master": {
"locked": { "locked": {
"lastModified": 1638168345, "lastModified": 1640272179,
"narHash": "sha256-QiqE2KqhYvZOSNSGjtj2z5+d3TJTHl7ziGdN2hxek0s=", "narHash": "sha256-xY4NlVQi6ZrolXDy/sB0H9wQnurj571YJRa2256Mhi0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9a3b63e9f1f11d0434432ac91a750f6e6d963a78", "rev": "2d3d4867c4f96b701ff9a3edc1bd961b0414464f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -192,18 +208,15 @@
"neovim-flake": { "neovim-flake": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": "nixpkgs_8"
"nvim",
"nixpkgs"
]
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1638043901, "lastModified": 1640212476,
"narHash": "sha256-/ptPh9yDIFYik13bOv6nhPWlWaozOI9SVPe7F/nCzrw=", "narHash": "sha256-479GRRtuk0JL0aQLvfAx+R1DvuNke1W3Fe8hTcuPUno=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "07223fae54b5b8095da16c598fc1395ec3677691", "rev": "7b8fbbdebe90a2dbf0d57464c93c7d5bfc3da449",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -216,16 +229,14 @@
"nix-gaming": { "nix-gaming": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_6",
"oglfPatches": "oglfPatches",
"tkgPatches": "tkgPatches",
"utils": "utils_3" "utils": "utils_3"
}, },
"locked": { "locked": {
"lastModified": 1637691862, "lastModified": 1638710960,
"narHash": "sha256-ZkUW8JfjDmFZnRQKeBKQvqlWLRgIq4p6v2QfLrjSm0s=", "narHash": "sha256-C6M/Nt2XMn26RiyMHb37YbKd+RiaiOIyvB1drDv5Ni8=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "caf86b1dd4b4cdd59970590eaaa9c009c9f1e6ea", "rev": "e6c087d81eed40b5f147fc48cc969c590ede3124",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -262,13 +273,44 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_2": { "nixpkgs-21_11": {
"locked": { "locked": {
"lastModified": 1638168345, "lastModified": 1638371214,
"narHash": "sha256-QiqE2KqhYvZOSNSGjtj2z5+d3TJTHl7ziGdN2hxek0s=", "narHash": "sha256-0kE6KhgH7n0vyuX4aUoGsGIQOqjIx2fJavpCWtn73rc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9a3b63e9f1f11d0434432ac91a750f6e6d963a78", "rev": "a640d8394f34714578f3e6335fc767d0755d78f9",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-21.11",
"type": "indirect"
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1637453606,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1640234302,
"narHash": "sha256-dALA+cOam5jQ2KOYdWiv6H6Y2stcYG6eclWQQVGx/FI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "81cbfc8f2a1e218249b7bff74013b63150171496",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -278,11 +320,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1638168345, "lastModified": 1640234302,
"narHash": "sha256-QiqE2KqhYvZOSNSGjtj2z5+d3TJTHl7ziGdN2hxek0s=", "narHash": "sha256-dALA+cOam5jQ2KOYdWiv6H6Y2stcYG6eclWQQVGx/FI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9a3b63e9f1f11d0434432ac91a750f6e6d963a78", "rev": "81cbfc8f2a1e218249b7bff74013b63150171496",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -323,11 +365,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1628417749, "lastModified": 1637579689,
"narHash": "sha256-LI00lL97qfnVPYLM50nh9BhHY9viHziuLjkMzBrIuTE=", "narHash": "sha256-w9jJ0l9TgSeoMRQZOk+9EqWcNSsOvqcvS3mj067M7II=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3a8b5de9f0db6be3eccf4987b09af26499ceff6f", "rev": "108f913823dc1977b57e34bf86818c08fad8536d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -338,11 +380,11 @@
}, },
"nixpkgs_7": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1638097282, "lastModified": 1640234302,
"narHash": "sha256-EXCzj9b8X/lqDPJapxZThIOKL5ASbpsJZ+8L1LnY1ig=", "narHash": "sha256-dALA+cOam5jQ2KOYdWiv6H6Y2stcYG6eclWQQVGx/FI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "78cb77b29d37a9663e05b61abb4fa09465da4b70", "rev": "81cbfc8f2a1e218249b7bff74013b63150171496",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -354,11 +396,27 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1637841632, "lastModified": 1640139330,
"narHash": "sha256-QYqiKHdda0EOnLGQCHE+GluD/Lq2EJj4hVTooPM55Ic=", "narHash": "sha256-Nkp3wUOGwtoQ7EH28RLVJ7EqB/e0TU7VcsM7GLy+SdY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "73369f8d0864854d1acfa7f1e6217f7d6b6e3fa1", "rev": "81cef6b70fb5d5cdba5a0fef3f714c2dadaf0d6d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1640139330,
"narHash": "sha256-Nkp3wUOGwtoQ7EH28RLVJ7EqB/e0TU7VcsM7GLy+SdY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "81cef6b70fb5d5cdba5a0fef3f714c2dadaf0d6d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -370,11 +428,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1638151156, "lastModified": 1640266271,
"narHash": "sha256-UOCvbXBpU8SbxiR4yLEW1CTDvxR8aA2dBOsw6Iai07I=", "narHash": "sha256-LhzidQfDb+w4Y/YFbJ+TtnNGftxTyhERZ51c8fgno8c=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "b873821f8bbac6d185728a6e3482c8acb8ed285a", "rev": "f80f18f9a59e34e0932143ddd56a994e7ce08d0d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -387,14 +445,14 @@
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"neovim-flake": "neovim-flake", "neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs_8" "nixpkgs": "nixpkgs_9"
}, },
"locked": { "locked": {
"lastModified": 1638087178, "lastModified": 1640247287,
"narHash": "sha256-2Z1bFOdtqJz3259xIXaAqu3n0iD0uaKOG53uSCQEr34=", "narHash": "sha256-LjWjopWwbwdLN6Fmct59aJK0LYsUwbIgcQ5sY+n4N0g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "e1a53537b1c7ad2a16da1493cd75b773635a9319", "rev": "f8886b6b3cedf8a38dd6daa6dfe64df9c710bd65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -403,23 +461,6 @@
"type": "github" "type": "github"
} }
}, },
"oglfPatches": {
"flake": false,
"locked": {
"lastModified": 1629854275,
"narHash": "sha256-hnj86MirD0jU4NzkdRoaODuryGRPUavA9qhGWlixk2Y=",
"owner": "openglfreak",
"repo": "wine-tkg-userpatches",
"rev": "c5d849279c8a90123162d92413aa249c2f044dc0",
"type": "github"
},
"original": {
"owner": "openglfreak",
"repo": "wine-tkg-userpatches",
"rev": "c5d849279c8a90123162d92413aa249c2f044dc0",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
@@ -433,40 +474,43 @@
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_7",
"nur": "nur", "nur": "nur",
"nvim": "nvim", "nvim": "nvim",
"rust": "rust",
"stable": "stable", "stable": "stable",
"utils": "utils_4" "utils": "utils_4"
} }
}, },
"stable": { "rust": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_10"
},
"locked": { "locked": {
"lastModified": 1637973395, "lastModified": 1640227139,
"narHash": "sha256-wp/QgsnnKJAIMZeQgJT1bWQ/OutZ+80lHwtpYAUWDfE=", "narHash": "sha256-FN22WSu7hObDtBvhqNuCAW4qCN+FE9Gv97O8oO1E3L0=",
"owner": "nixos", "owner": "oxalica",
"repo": "nixpkgs", "repo": "rust-overlay",
"rev": "4f37689c8a219a9d756c5ff38525ad09349f422f", "rev": "5c8f3e3facc8b2d183bd18bbf9eb760ed37b5a49",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "oxalica",
"ref": "nixos-21.05", "repo": "rust-overlay",
"repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"tkgPatches": { "stable": {
"flake": false,
"locked": { "locked": {
"lastModified": 1628767531, "lastModified": 1640077788,
"narHash": "sha256-tcprbnfojbCQLiebOaiOp0Occ/6f0m38N56bzgGKuJc=", "narHash": "sha256-YMSDk3hlucJTTARaHNOeQEF6zEW3A/x4sXgrz94VbS0=",
"owner": "Frogging-Family", "owner": "nixos",
"repo": "wine-tkg-git", "repo": "nixpkgs",
"rev": "de6cd55961861c254bb4d96481a75bfb78553e5d", "rev": "9ab7d12287ced0e1b4c03b61c781901f178d9d77",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "Frogging-Family", "owner": "nixos",
"ref": "6.14.r6.g1bc4da9d", "ref": "nixos-21.11",
"repo": "wine-tkg-git", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
@@ -505,16 +549,15 @@
"flake-utils": "flake-utils" "flake-utils": "flake-utils"
}, },
"locked": { "locked": {
"lastModified": 1626816926, "lastModified": 1636270960,
"narHash": "sha256-mJKFdfc4UWL49ar2Tc4krKMnDUa0Dkhj8QmbR3SThHo=", "narHash": "sha256-5M3ytlFl9q6up8twhJ63JE2A5igrHR94YsHTOmKzHwA=",
"owner": "gytis-ivaskevicius", "owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus", "repo": "flake-utils-plus",
"rev": "5dba7556e1c7f36152c9f65c16bc813ec73ee6a5", "rev": "e22fcd75da49c122ec7a0e30785e3edf2f69cfe7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "gytis-ivaskevicius", "owner": "gytis-ivaskevicius",
"ref": "staging",
"repo": "flake-utils-plus", "repo": "flake-utils-plus",
"type": "github" "type": "github"
} }

View File

@@ -1,10 +1,10 @@
{ {
inputs = { inputs = {
stable.url = github:nixos/nixpkgs/nixos-21.05; stable.url = github:nixos/nixpkgs/nixos-21.11;
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable; nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
master.url = github:nixos/nixpkgs/master; master.url = github:nixos/nixpkgs/master;
home-manager.url = github:nix-community/home-manager; home-manager.url = github:nix-community/home-manager;
home-manager-stable.url = github:nix-community/home-manager/release-21.05; home-manager-stable.url = github:nix-community/home-manager/release-21.11;
nur.url = github:nix-community/NUR; nur.url = github:nix-community/NUR;
agenix.url = github:ryantm/agenix; agenix.url = github:ryantm/agenix;
utils.url = github:numtide/flake-utils; utils.url = github:numtide/flake-utils;
@@ -13,6 +13,7 @@
nbfc.url = github:natto1784/nbfc-linux/yawr; nbfc.url = github:natto1784/nbfc-linux/yawr;
emacs.url = github:nix-community/emacs-overlay; emacs.url = github:nix-community/emacs-overlay;
nix-gaming.url = github:fufexan/nix-gaming; nix-gaming.url = github:fufexan/nix-gaming;
rust.url = github:oxalica/rust-overlay;
}; };
outputs = inputs@{self, nixpkgs, stable, master, ... }: outputs = inputs@{self, nixpkgs, stable, master, ... }:
@@ -38,6 +39,7 @@
overlays = overlays ++ [ overlays = overlays ++ [
inputs.nur.overlay inputs.nur.overlay
inputs.nvim.overlay inputs.nvim.overlay
inputs.rust.overlay
inputs.emacs.overlay inputs.emacs.overlay
channels channels
( _: _: { ( _: _: {
@@ -53,9 +55,9 @@
let let
personalModules = [ personalModules = [
./modules/nvidia-offload.nix ./modules/nvidia-offload.nix
./modules/pipewire.nix ./modules/sound.nix
./modules/xorg.nix ./modules/xorg.nix
./modules/emacs # ./modules/emacs
]; ];
commonModules = [ commonModules = [
./modules/nvim ./modules/nvim

View File

@@ -4,8 +4,7 @@ let
in in
{ {
imports = [ imports = [
./stuff/programs.nix ./stuff/programs.nix ./stuff/xsession.nix
./stuff/xsession.nix
./stuff/secret.nix ./stuff/secret.nix
./stuff/services.nix ./stuff/services.nix
]; ];
@@ -37,9 +36,7 @@ in
}; };
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
/* (ffmpeg-full.override { ffmpeg-full
libaom = libaom;
})*/
sox sox
rage rage
curl curl
@@ -81,7 +78,7 @@ in
arc-theme arc-theme
arc-icon-theme arc-icon-theme
tor-browser-bundle-bin tor-browser-bundle-bin
games.wine-tkg wineWowPackages.stable
master.winetricks master.winetricks
games.winestreamproxy games.winestreamproxy
/* (games.osu-stable.overrideAttrs (_:{ /* (games.osu-stable.overrideAttrs (_:{
@@ -96,8 +93,12 @@ in
nbfc-linux nbfc-linux
pulseaudio pulseaudio
(texlive.combine { inherit (texlive) scheme-small babel lm graphics-def url; }) (texlive.combine { inherit (texlive) scheme-small babel lm graphics-def url; })
qjackctl (qjackctl.override { jackSession = true; })
ardour
carla carla
electrum
anki-bin
spotify
]; ];
file = { file = {

View File

@@ -61,7 +61,8 @@ in
extraConfig = '' extraConfig = ''
log_file "~/.config/mpd/log" log_file "~/.config/mpd/log"
pid_file "~/.config/mpd/pid" pid_file "~/.config/mpd/pid"
# bind_to_address "~/.config/mpd/socket" bind_to_address "0.0.0.0"
bind_to_address "~/.config/mpd/socket"
restore_paused "yes" restore_paused "yes"
input { input {
plugin "curl" plugin "curl"

View File

@@ -15,7 +15,7 @@
kernelModules = []; kernelModules = [];
}; };
kernelParams = [ "intel_pstate=active" "intel_iommu=on" ]; kernelParams = [ "intel_pstate=active" "intel_iommu=on" ];
kernelModules = [ "kvm-intel" ]; kernelModules = [ "kvm-intel" "snd-seq" "snd-rawmidi" ];
extraModulePackages = with config.boot.kernelPackages; [ nvidia_x11 v4l2loopback]; extraModulePackages = with config.boot.kernelPackages; [ nvidia_x11 v4l2loopback];
loader = { loader = {
efi = { efi = {

View File

@@ -5,12 +5,11 @@
[ [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
fileSystems."/" = fileSystems."/" =
{ {
device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047"; device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
fsType = "btrfs"; fsType = "btrfs";
options = ["compress-force=zstd:2"]; options = [ "compress-force=zstd:3" ];
}; };
fileSystems."/boot/efi" = fileSystems."/boot/efi" =
@@ -18,31 +17,19 @@
device = "/dev/disk/by-uuid/58B1-4631"; device = "/dev/disk/by-uuid/58B1-4631";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/mnt/Stuff" =
{
device = "/dev/disk/by-uuid/843E68573E6843F0";
fsType = "ntfs";
options = ["uid=natto" "gid=users" "umask=0022" "rw"];
};
fileSystems."/mnt/Extra" =
{
device = "/dev/disk/by-uuid/32EE9F63EE9F1DE3";
fsType = "ntfs";
options = ["uid=natto" "gid=users" "umask=0022" "rw"];
};
fileSystems."/mnt/Games" = fileSystems."/mnt/Games" =
{ {
device = "/dev/disk/by-uuid/A4CC66B6CC668282"; device = "/dev/disk/by-uuid/A4CC66B6CC668282";
fsType = "ntfs"; fsType = "ntfs";
options = [ "uid=natto" "gid=users" "umask=0022" "rw" ]; options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
}; };
fileSystems."/mnt/Stuff2" = fileSystems."/mnt/Stuff" =
{ {
device = "/dev/disk/by-uuid/e5be3621-8608-4ffe-bd33-5e6d22fef4ff"; device = "/dev/disk/by-uuid/e5be3621-8608-4ffe-bd33-5e6d22fef4ff";
fsType = "btrfs"; fsType = "btrfs";
options = ["compress-force=zstd:1"]; options = [ "compress-force=zstd:3" ];
}; };
swapDevices = [ {device = "/dev/nvme0n1p7";} ]; swapDevices = [ ];
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "lz4"; algorithm = "lz4";

View File

@@ -6,7 +6,7 @@
wireless.enable = true; wireless.enable = true;
wireless.interfaces = [ "wlp0s20f3" ]; wireless.interfaces = [ "wlp0s20f3" ];
firewall = { firewall = {
allowedTCPPorts = [ 22 18172 6600 ]; allowedTCPPorts = [ 22 18172 6600 8000 ];
allowedUDPPorts = [ 22 17840 18172 ]; allowedUDPPorts = [ 22 17840 18172 ];
}; };
interfaces = { interfaces = {

View File

@@ -2,6 +2,7 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
tmux
bc bc
gnumake gnumake
pciutils pciutils
@@ -15,11 +16,19 @@
kbd kbd
cachix cachix
gcc gcc
rustc
stable.openjdk stable.openjdk
virtmanager virtmanager
tree-sitter tree-sitter
docker-compose docker-compose
nodePackages.typescript
rust-bin.nightly.latest.default
#language servers
rust-analyzer
ccls
nodePackages.typescript-language-server
rnix-lsp
python3Packages.python-lsp-server
haskell-language-server
]; ];
programs = { programs = {

View File

@@ -1,5 +1,4 @@
vim.api.nvim_set_option("termguicolors", true) vim.api.nvim_set_option("termguicolors", true)
local nvimlsp = require('lspconfig')
local comm = vim.api.nvim_command local comm = vim.api.nvim_command
local bind = vim.api.nvim_set_keymap local bind = vim.api.nvim_set_keymap
local setvar = vim.api.nvim_set_var local setvar = vim.api.nvim_set_var
@@ -352,9 +351,10 @@ capabilities.textDocument.completion.completionItem.resolveSupport = {
} }
} }
local nvimlsp = require('lspconfig')
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
nvimlsp[lsp].setup { capabilities = capabilities, on_attach = on_attach } nvimlsp[lsp].setup { capabilities = capabilities, on_attach = on_attach }
end end
vim.g.tex_flavor = "latex" vim.g.tex_flavor = "latex"
comm("set syntax=on") comm("set syntax=off")

View File

@@ -9,7 +9,10 @@
support32Bit = true; support32Bit = true;
}; };
pulse.enable = true; pulse.enable = true;
#jack.enable = true; jack.enable = true;
socketActivation = true;
# https://nixos.wiki/wiki/PipeWire#Low-latency_setup
config.pipewire = { config.pipewire = {
context.objects = [ context.objects = [
{ {
@@ -76,8 +79,11 @@
}; };
}; };
sound.enable = true; sound.enable = true;
# hardware = { /* hardware = {
# pulseaudio.enable = true; pulseaudio = {
# pulseaudio.support32Bit = true; enable = true;
# }; support32Bit = true;
package = pkgs.pulseaudio.override { jackaudioSupport = true; };
};
};*/
} }