this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove musix

Ben C bbec852e d85342f9

+122 -52
+121
'
··· 1 + { 2 + description = "A very basic flake for a basic cow"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 + flakelight.url = "github:nix-community/flakelight"; 7 + flakelight.inputs.nixpkgs.follows = "nixpkgs"; 8 + flakelight-treefmt.url = "github:m15a/flakelight-treefmt"; 9 + flakelight-treefmt.inputs.flakelight.follows = "flakelight"; 10 + nix-index-db.url = "github:nix-community/nix-index-database"; 11 + nix-index-db.inputs.nixpkgs.follows = "nixpkgs"; 12 + hm.url = "github:nix-community/home-manager"; 13 + hm.inputs.nixpkgs.follows = "nixpkgs"; 14 + nixos-hardware.url = "github:NixOS/nixos-hardware"; 15 + lanzaboote.url = "github:nix-community/lanzaboote"; 16 + lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; 17 + wayland-mpris-idle-inhibit.url = "git+https://tangled.org/bwc9876.dev/wayland-mpris-idle-inhibit"; 18 + wayland-mpris-idle-inhibit.inputs.nixpkgs.follows = "nixpkgs"; 19 + fenix.url = "github:nix-community/fenix/monthly"; 20 + fenix.inputs.nixpkgs.follows = "nixpkgs"; 21 + catppuccin.url = "github:catppuccin/nix"; 22 + catppuccin.inputs.nixpkgs.follows = "nixpkgs"; 23 + # cat-stylus = { 24 + # url = "https://github.com/catppuccin/userstyles/releases/download/all-userstyles-export/import.json"; 25 + # flake = false; 26 + # }; 27 + nixvim.url = "github:nix-community/nixvim"; 28 + nixvim.inputs.nixpkgs.follows = "nixpkgs"; 29 + imperm.url = "github:nix-community/impermanence"; 30 + imperm.inputs.nixpkgs.follows = "nixpkgs"; 31 + imperm.inputs.home-manager.follows = "hm"; 32 + nu_plugin_dbus.url = "git+https://tangled.org/bwc9876.dev/nu_plugin_dbus"; 33 + nu_plugin_dbus.inputs.nixpkgs.follows = "nixpkgs"; 34 + bingus.url = "git+https://tangled.org/bwc9876.dev/bingus-bot"; 35 + bingus.inputs.nixpkgs.follows = "nixpkgs"; 36 + niri.url = "github:sodiboo/niri-flake"; 37 + niri.inputs.nixpkgs.follows = "nixpkgs"; 38 + tangled.url = "git+https://tangled.org/tangled.org/core"; 39 + tangled.inputs.nixpkgs.follows = "nixpkgs"; 40 + tranquil.url = "git+https://tangled.org/tranquil.farm/tranquil-pds"; 41 + tranquil.inputs.nixpkgs.follows = "nixpkgs"; 42 + 43 + spoon.url = "git+https://codeberg.org/spoonbaker/mono"; 44 + }; 45 + 46 + outputs = inputs @ { 47 + self, 48 + nixpkgs, 49 + flakelight, 50 + flakelight-treefmt, 51 + nix-index-db, 52 + hm, 53 + nixos-hardware, 54 + lanzaboote, 55 + wayland-mpris-idle-inhibit, 56 + fenix, 57 + catppuccin, 58 + # cat-stylus, 59 + nixvim, 60 + imperm, 61 + nu_plugin_dbus, 62 + bingus, 63 + spoon, 64 + niri, 65 + tangled, 66 + tranquil, 67 + }: 68 + flakelight ./. { 69 + inherit inputs; 70 + imports = [ 71 + flakelight-treefmt.flakelightModules.default 72 + spoon.flakelightModules.repl 73 + spoon.flakelightModules.ubercheck 74 + ]; 75 + 76 + treefmtConfig = {pkgs, ...}: { 77 + programs = { 78 + alejandra.enable = true; 79 + just.enable = true; 80 + shfmt.enable = true; 81 + }; 82 + }; 83 + 84 + homeModule = {lib, ...}: { 85 + _module.args = {inherit inputs;}; 86 + imports = let 87 + deps = [ 88 + inputs.nixvim.homeModules.nixvim 89 + inputs.nix-index-db.homeModules.nix-index 90 + inputs.catppuccin.homeModules.catppuccin 91 + inputs.niri.homeModules.niri 92 + ]; 93 + myMods = lib.mapAttrsToList (k: v: ./homeModules/${k}) (builtins.readDir ./homeModules); 94 + in 95 + deps ++ myMods; 96 + }; 97 + 98 + nixosModule = {lib, ...}: { 99 + _module.args = {inherit inputs;}; 100 + imports = let 101 + deps = [ 102 + inputs.hm.nixosModules.default 103 + inputs.catppuccin.nixosModules.catppuccin 104 + inputs.lanzaboote.nixosModules.lanzaboote 105 + inputs.imperm.nixosModules.default 106 + inputs.tranquil.nixosModules.default 107 + inputs.tangled.nixosModules.knot 108 + inputs.tangled.nixosModules.spindle 109 + ]; 110 + myMods = lib.mapAttrsToList (k: v: ./nixosModules/${k}) (builtins.readDir ./nixosModules); 111 + in 112 + deps ++ myMods; 113 + }; 114 + 115 + nixDir = ./.; 116 + legacyPackages = pkgs: pkgs; 117 + nixpkgs.config = { 118 + allowUnfree = true; 119 + }; 120 + }; 121 + }
-21
flake.lock
··· 599 599 "url": "https://cdn.jsdelivr.net/npm/mermaid@11.12.3/dist/mermaid.min.js" 600 600 } 601 601 }, 602 - "musnix": { 603 - "inputs": { 604 - "nixpkgs": [ 605 - "nixpkgs" 606 - ] 607 - }, 608 - "locked": { 609 - "lastModified": 1773185476, 610 - "narHash": "sha256-COuJkFg669oalmEN3T61gD3gM9SfUsiGvDS9pCOphZY=", 611 - "owner": "musnix", 612 - "repo": "musnix", 613 - "rev": "739e2a1f94c87d5f4c8b880a12480185cf0d7620", 614 - "type": "github" 615 - }, 616 - "original": { 617 - "owner": "musnix", 618 - "repo": "musnix", 619 - "type": "github" 620 - } 621 - }, 622 602 "niri": { 623 603 "inputs": { 624 604 "niri-stable": "niri-stable", ··· 837 817 "hm": "hm", 838 818 "imperm": "imperm", 839 819 "lanzaboote": "lanzaboote", 840 - "musnix": "musnix", 841 820 "niri": "niri", 842 821 "nix-index-db": "nix-index-db", 843 822 "nixos-hardware": "nixos-hardware",
-4
flake.nix
··· 35 35 bingus.inputs.nixpkgs.follows = "nixpkgs"; 36 36 niri.url = "github:sodiboo/niri-flake"; 37 37 niri.inputs.nixpkgs.follows = "nixpkgs"; 38 - musnix.url = "github:musnix/musnix"; 39 - musnix.inputs.nixpkgs.follows = "nixpkgs"; 40 38 tangled.url = "git+https://tangled.org/tangled.org/core"; 41 39 tangled.inputs.nixpkgs.follows = "nixpkgs"; 42 40 tranquil.url = "git+https://tangled.org/tranquil.farm/tranquil-pds"; ··· 64 62 bingus, 65 63 spoon, 66 64 niri, 67 - musnix, 68 65 tangled, 69 66 tranquil, 70 67 }: ··· 105 102 inputs.hm.nixosModules.default 106 103 inputs.catppuccin.nixosModules.catppuccin 107 104 inputs.lanzaboote.nixosModules.lanzaboote 108 - inputs.musnix.nixosModules.musnix 109 105 inputs.imperm.nixosModules.default 110 106 inputs.tranquil.nixosModules.default 111 107 inputs.tangled.nixosModules.knot
-5
nixosConfigurations/aperture.nix
··· 53 53 ]; 54 54 55 55 cow = { 56 - audio.tweaks = { 57 - enable = true; 58 - threadirqs = true; 59 - soundCard = "00:1f.3"; 60 - }; 61 56 base.sysrqs = true; 62 57 bean.sudoer = true; 63 58 lanzaboote.enable = true;
-17
nixosModules/audio.nix
··· 5 5 }: { 6 6 options.cow.audio = { 7 7 enable = lib.mkEnableOption "audio config with Pipewire"; 8 - tweaks = { 9 - enable = lib.mkEnableOption "audio performance tweaks with musnix"; 10 - threadirqs = lib.mkEnableOption "threadirqs kernel param"; 11 - soundCard = lib.mkOption { 12 - type = lib.types.nullOr lib.types.str; 13 - description = "PCI ID of the primary soundcard (lspci | grep -i audio)"; 14 - default = null; 15 - }; 16 - }; 17 8 }; 18 9 19 10 config = let ··· 29 20 support32Bit = true; 30 21 }; 31 22 }; 32 - 33 - musnix = lib.mkIf conf.tweaks.enable { 34 - enable = true; 35 - rtcqs.enable = true; 36 - soundcardPciId = lib.mkIf (conf.tweaks.soundCard != null) conf.tweaks.soundCard; 37 - }; 38 - 39 - boot.kernelParams = lib.mkIf (conf.tweaks.threadirqs) ["threadirqs"]; 40 23 41 24 users.users = lib.mkIf config.cow.bean.enable { 42 25 bean.extraGroups = ["audio"];
+1 -5
nixosModules/role-laptop.nix
··· 44 44 }; 45 45 46 46 # Set to null as TLP will manage the frequency governor for us 47 - powerManagement.cpuFreqGovernor = lib.mkIf config.cow.role-laptop.powersave ( 48 - if config.cow.audio.tweaks.enable 49 - then (lib.mkForce null) 50 - else null 51 - ); 47 + powerManagement.cpuFreqGovernor = lib.mkIf config.cow.role-laptop.powersave null; 52 48 53 49 services.tlp = lib.mkIf config.cow.role-laptop.powersave { 54 50 enable = true;