mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
big nix changes
This commit is contained in:
parent
bffc03201b
commit
c727bdb8ff
7 changed files with 60 additions and 9 deletions
|
|
@ -97,7 +97,8 @@
|
|||
"modules-right": [
|
||||
"pulseaudio",
|
||||
"clock",
|
||||
"bluetooth"
|
||||
"network",
|
||||
"bluetooth",
|
||||
],
|
||||
"pulseaudio": {
|
||||
"tooltip": false,
|
||||
|
|
@ -159,8 +160,8 @@
|
|||
},
|
||||
"network": {
|
||||
"interface": "wlo1",
|
||||
"format-wifi": "+ {essid}",
|
||||
"format-ethernet": " {ipaddr}/{cidr}",
|
||||
"format-wifi": "NET {ipaddr}",
|
||||
"format-ethernet": "NET {ipaddr}/{cidr}",
|
||||
"format-disconnected": "disconnected",
|
||||
"tooltip": false,
|
||||
"max-length": 50
|
||||
|
|
|
|||
1
etc/nixos/README
Normal file
1
etc/nixos/README
Normal file
|
|
@ -0,0 +1 @@
|
|||
My new NixOS configuration. Still working on it.
|
||||
|
|
@ -6,7 +6,6 @@
|
|||
unstable = pkgsUnstable;
|
||||
in
|
||||
{
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
|
|
@ -76,9 +75,9 @@ in
|
|||
virtualisation.waydroid.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(lib.hiPrio unstable.uutils-coreutils-noprefix)
|
||||
(lib.hiPrio unstable.uutils-findutils)
|
||||
(lib.hiPrio unstable.uutils-diffutils)
|
||||
# (lib.hiPrio unstable.uutils-coreutils-noprefix)
|
||||
# (lib.hiPrio unstable.uutils-findutils)
|
||||
# (lib.hiPrio unstable.uutils-diffutils)
|
||||
(pkgs.runCommand "vim-wrapper" { } ''
|
||||
mkdir -p $out/bin
|
||||
ln -s ${pkgs.neovim}/bin/nvim $out/bin/vim
|
||||
48
etc/nixos/configuration/sys/coreutils-configuration.nix
Normal file
48
etc/nixos/configuration/sys/coreutils-configuration.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
coreutils-full-name = "coreuutils-full" + builtins.concatStringsSep ""
|
||||
(builtins.genList (_: "_") (builtins.stringLength pkgs.coreutils-full.version));
|
||||
|
||||
coreutils-name = "coreuutils" + builtins.concatStringsSep ""
|
||||
(builtins.genList (_: "_") (builtins.stringLength pkgs.coreutils.version));
|
||||
|
||||
findutils-name = "finduutils" + builtins.concatStringsSep ""
|
||||
(builtins.genList (_: "_") (builtins.stringLength pkgs.findutils.version));
|
||||
|
||||
diffutils-name = "diffuutils" + builtins.concatStringsSep ""
|
||||
(builtins.genList (_: "_") (builtins.stringLength pkgs.diffutils.version));
|
||||
in
|
||||
{
|
||||
system.replaceDependencies.replacements = [
|
||||
{
|
||||
oldDependency = pkgs.coreutils-full;
|
||||
newDependency = pkgs.symlinkJoin {
|
||||
name = coreutils-full-name;
|
||||
paths = [pkgs.uutils-coreutils-noprefix];
|
||||
};
|
||||
}
|
||||
{
|
||||
oldDependency = pkgs.coreutils;
|
||||
newDependency = pkgs.symlinkJoin {
|
||||
name = coreutils-name;
|
||||
paths = [pkgs.uutils-coreutils-noprefix];
|
||||
};
|
||||
}
|
||||
{
|
||||
oldDependency = pkgs.findutils;
|
||||
newDependency = pkgs.symlinkJoin {
|
||||
name = findutils-name;
|
||||
paths = [pkgs.uutils-findutils];
|
||||
};
|
||||
}
|
||||
{
|
||||
oldDependency = pkgs.diffutils;
|
||||
newDependency = pkgs.symlinkJoin {
|
||||
name = diffutils-name;
|
||||
paths = [pkgs.uutils-diffutils];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -41,7 +41,8 @@
|
|||
nixosConfigurations.gloria = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
(import ./configuration.nix { inherit pkgs pkgsUnstable; })
|
||||
(import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; })
|
||||
./configuration/sys/coreutils-configuration.nix
|
||||
./hardware-configuration.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager = {
|
||||
|
|
@ -50,7 +51,7 @@
|
|||
backupFileExtension = "home-backup";
|
||||
users.coast = { ... }: {
|
||||
imports = [
|
||||
./home-configuration/home.nix
|
||||
./home-configuration/configuration.nix
|
||||
./home-configuration/apps/sway.nix
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ in
|
|||
"${modifier}+Shift+v" = "exec vesktop --ozone-platform=wayland";
|
||||
"${modifier}+Shift+p" = "exec /home/coast/.local/src/local/bin/setwall.py";
|
||||
"${modifier}+Shift+d" = "mode 'resize'";
|
||||
"${modifier}+space" = "floating toggle";
|
||||
};
|
||||
modes = {
|
||||
resize = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue