1
0
Fork 0
mirror of https://git.sr.ht/~azikx/wyswort synced 2024-10-30 05:16:19 +00:00

update 

This commit is contained in:
azikx 2024-10-27 22:16:12 +09:00
parent 79bf183c6c
commit d6cccc1751
12 changed files with 213 additions and 80 deletions

View file

@ -210,6 +210,42 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1727826117,
"narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -606,6 +642,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-gaming": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_3",
"umu": "umu"
},
"locked": {
"lastModified": 1729733994,
"narHash": "sha256-OFI0EG5ToqHJMPgMKmo6eAJcHqhNVgrgcAMQ8oIHEN8=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "af2e2e01939aa85a6ca588b97297a0856618f341",
"type": "github"
},
"original": {
"owner": "fufexan",
"repo": "nix-gaming",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1728729581, "lastModified": 1728729581,
@ -638,6 +694,30 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": {
"locked": {
"lastModified": 1727825735,
"narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1727825735,
"narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz"
}
},
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1720386169, "lastModified": 1720386169,
@ -687,6 +767,22 @@
} }
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": {
"lastModified": 1728538411,
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1728492678, "lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", "narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
@ -702,7 +798,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1725194671, "lastModified": 1725194671,
"narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=", "narHash": "sha256-tLGCFEFTB5TaOKkpfw3iYT9dnk4awTP/q4w+ROpMfuw=",
@ -718,7 +814,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1722415718, "lastModified": 1722415718,
"narHash": "sha256-5US0/pgxbMksF92k1+eOa8arJTJiPvsdZj9Dl+vJkM4=", "narHash": "sha256-5US0/pgxbMksF92k1+eOa8arJTJiPvsdZj9Dl+vJkM4=",
@ -734,7 +830,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", "narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
@ -814,12 +910,14 @@
"auto-cpufreq": "auto-cpufreq", "auto-cpufreq": "auto-cpufreq",
"ayugram-desktop": "ayugram-desktop", "ayugram-desktop": "ayugram-desktop",
"firefox-addons": "firefox-addons", "firefox-addons": "firefox-addons",
"flake-parts": "flake-parts",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprfocus": "hyprfocus", "hyprfocus": "hyprfocus",
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins", "hyprland-plugins": "hyprland-plugins",
"nix-gaming": "nix-gaming",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable_2", "nixpkgs-stable": "nixpkgs-stable_2",
"nur": "nur", "nur": "nur",
"nypkgs": "nypkgs", "nypkgs": "nypkgs",
@ -883,7 +981,7 @@
"flake-utils": "flake-utils_3", "flake-utils": "flake-utils_3",
"gnome-shell": "gnome-shell", "gnome-shell": "gnome-shell",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_5",
"systems": "systems_3", "systems": "systems_3",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
@ -1012,6 +1110,31 @@
"type": "github" "type": "github"
} }
}, },
"umu": {
"inputs": {
"nixpkgs": [
"nix-gaming",
"nixpkgs"
]
},
"locked": {
"dir": "packaging/nix",
"lastModified": 1728772489,
"narHash": "sha256-6sHjXNhPrRXIV1au5jlSXHeqn/QHb9wyRt7V0F5p4PA=",
"ref": "refs/heads/main",
"rev": "475e2b37e34a663b11f8c92b79dd45637a3e848c",
"revCount": 770,
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
},
"original": {
"dir": "packaging/nix",
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
}
},
"walls": { "walls": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1073,7 +1196,7 @@
"yazi": { "yazi": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_4", "flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_6",
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
@ -1092,7 +1215,7 @@
}, },
"zen-browser": { "zen-browser": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_7"
}, },
"locked": { "locked": {
"lastModified": 1729457884, "lastModified": 1729457884,

View file

@ -1,26 +1,28 @@
{ {
outputs = { nixpkgs, home-manager, ... }@inputs: outputs = { flake-parts, nixpkgs, home-manager, ... }@inputs:
let let
nxsys = nixpkgs.lib.nixosSystem; nx = nixpkgs.lib.nixosSystem;
hmsys = home-manager.lib.homeManagerConfiguration; hm = home-manager.lib.homeManagerConfiguration;
in { in flake-parts.lib.mkFlake { inherit inputs; } {
nixosConfigurations = { systems = [ "x86_64-linux" ];
wysvort = nxsys { flake = {
specialArgs = { inherit inputs; }; # HOST CONFIGURATION
modules = [ ./host ]; nixosConfigurations = {
wysvort = nx {
specialArgs = { inherit inputs; };
modules = [ ./host ];
};
};
# HOME CONFIGURATION
homeConfigurations = {
megamozg = hm {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs; };
modules = [ ./home ];
};
}; };
}; };
homeConfigurations = {
megamozg = hmsys {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs; };
modules = [ ./home ];
};
};
hostModules = import ./modules/host;
homeModules = import ./modules/home;
}; };
inputs = { inputs = {
@ -34,6 +36,8 @@
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
zen-browser.url = "github:0xc000022070/zen-browser-flake"; zen-browser.url = "github:0xc000022070/zen-browser-flake";
flake-parts.url = "github:hercules-ci/flake-parts";
nix-gaming.url = "github:fufexan/nix-gaming";
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
yazi.url = "github:sxyazi/yazi"; yazi.url = "github:sxyazi/yazi";

View file

@ -6,7 +6,7 @@
extraConfig = { extraConfig = {
color.ui = true; color.ui = true;
init.defaultBranch = "main"; init.defaultBranch = "main";
safe.directory = "/home/megamozg/.flake"; safe.directory = "*";
}; };
}; };
} }

View file

@ -1,20 +1,19 @@
{ pkgs, inputs, ... }: { pkgs, inputs, ... }: {
{ imports = [
imports = [ ./hyprland
./hyprland # ./swayfx
# ./swayfx ./terminals
./terminals ./misc
./misc ];
]; home.packages = with pkgs; [
home.packages = with pkgs; [ hyprcursor
hyprcursor kitty
kitty mako
mako nwg-drawer
nwg-drawer grimblast
grimblast wf-recorder
wf-recorder light
light wl-clipboard
wl-clipboard hyprpicker
hyprpicker ];
];
} }

View file

@ -1,4 +1,5 @@
{ pkgs, ... }: { { pkgs, config, ... }: {
# module = { user.enable = true; };
users = { users = {
users = { # USERS users = { # USERS
megamozg = { megamozg = {

View file

@ -1,10 +1,12 @@
{ ... }: { { ... }: {
security.rtkit.enable = true; imports = [ ../../modules/host/hardware/sound ];
services.pipewire = { # SOUND NEW GEN module = { hardware = { sound.enable = true; }; };
enable = true; # security.rtkit.enable = true;
wireplumber.enable = true; # services.pipewire = { # SOUND NEW GEN
alsa.enable = true; # enable = true;
alsa.support32Bit = true; # wireplumber.enable = true;
pulse.enable = true; # alsa.enable = true;
}; # alsa.support32Bit = true;
# pulse.enable = true;
# };
} }

View file

@ -1,5 +1 @@
{ lib, ... }: { { imports = [ ./hardware ./misc ./programs ./services ]; }
imports = lib.fileset.toList (
# All default.nix files in ./.
lib.fileset.fileFilter (file: file.name == "default.nix") ./.);
}

View file

@ -1,5 +1 @@
{ lib, ... }: { { imports = [ ./bluetooth ./boot ./cpu ./gpu ./network ./security ./sound ]; }
imports = lib.fileset.toList (
# All default.nix files in ./.
lib.fileset.fileFilter (file: file.name == "default.nix") ./.);
}

View file

@ -1,4 +1,4 @@
{ lib, config, ... }: { lib, config, inputs, ... }:
with lib; with lib;
@ -6,6 +6,7 @@ let cfg = config.module.hardware.sound;
in { in {
options = { module.hardware.sound = { enable = mkEnableOption ""; }; }; options = { module.hardware.sound = { enable = mkEnableOption ""; }; };
imports = [ inputs.nix-gaming.nixosModules.pipewireLowLatency ];
config = mkIf cfg.enable { config = mkIf cfg.enable {
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {

View file

@ -1,5 +1,12 @@
{ lib, ... }: { {
imports = lib.fileset.toList ( imports = [
# All default.nix files in ./. ./locales
lib.fileset.fileFilter (file: file.name == "default.nix") ./.); ./minimal
./power
./system76
./torrserver
./users
./variables
./zapret
];
} }

View file

@ -1,5 +1 @@
{ lib, ... }: { { imports = [ ./fish ./git ./hm ./hyprland ./light ./nh ./packages ./steam ]; }
imports = lib.fileset.toList (
# All default.nix files in ./.
lib.fileset.fileFilter (file: file.name == "default.nix") ./.);
}

View file

@ -1,6 +1,14 @@
{ lib, ... }: { {
imports = lib.fileset.toList ( imports = [
# All default.nix files in ./. ./autocpu
lib.fileset.fileFilter (file: file.name == "default.nix") ./.); ./dbus
./getty
./gvfs
./laptop
./polkit
./printing
./tailscale
./xserver
./zram
];
} }