devenv
This commit is contained in:
parent
946c6157bf
commit
8ac1e75e85
6 changed files with 33 additions and 71 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
devenv
|
||||||
act
|
act
|
||||||
aichat
|
aichat
|
||||||
# (llm.withPlugins (ps: with ps; [llm-openrouter]))
|
# (llm.withPlugins (ps: with ps; [llm-openrouter]))
|
||||||
|
|
@ -102,13 +103,13 @@
|
||||||
SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg"
|
SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualisation.docker = {
|
# virtualisation.docker = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
storageDriver = "btrfs";
|
# storageDriver = "btrfs";
|
||||||
};
|
# };
|
||||||
virtualisation.docker.rootless = {
|
# virtualisation.docker.rootless = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
setSocketVariable = true;
|
# setSocketVariable = true;
|
||||||
};
|
# };
|
||||||
users.extraGroups.docker.members = ["tao"];
|
# users.extraGroups.docker.members = ["tao"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
53
flake.lock
generated
53
flake.lock
generated
|
|
@ -294,27 +294,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_3": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"plasma-manager",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1714377222,
|
|
||||||
"narHash": "sha256-UsDsjWCKlWn8vbXi8Zza9Hkq3xyk8fpvFNo2VM5S74E=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "2af7c78b7bb9cf18406a193eba13ef9f99388f49",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libgit2": {
|
"libgit2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -563,27 +542,6 @@
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plasma-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"home-manager": "home-manager_3",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1736549395,
|
|
||||||
"narHash": "sha256-XzwkB62Tt5UYoL1jXiHzgk/qz2fUpGHExcSIbyGTtI0=",
|
|
||||||
"owner": "pjones",
|
|
||||||
"repo": "plasma-manager",
|
|
||||||
"rev": "a53af7f1514ef4cce8620a9d6a50f238cdedec8b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "pjones",
|
|
||||||
"repo": "plasma-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
|
@ -596,7 +554,6 @@
|
||||||
"nixos-facter-modules": "nixos-facter-modules",
|
"nixos-facter-modules": "nixos-facter-modules",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5",
|
||||||
"plasma-manager": "plasma-manager",
|
|
||||||
"zen-browser": "zen-browser"
|
"zen-browser": "zen-browser"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -658,15 +615,15 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727721329,
|
"lastModified": 1739459953,
|
||||||
"narHash": "sha256-QYlWZwUSwrM7BuO+dXclZIwoPvBIuJr6GpFKv9XKFPI=",
|
"narHash": "sha256-utELlKir2wO2fRzNPuAIx9z8f6BGUt0Q3IzA0GNfAPk=",
|
||||||
"owner": "MarceColl",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "e6ab73f405e9a2896cce5956c549a9cc359e5fcc",
|
"rev": "f36e0e7e21079151bfe817df3a6ab93dc8d648ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "MarceColl",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -17,10 +17,10 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
plasma-manager = {
|
# plasma-manager = {
|
||||||
url = "github:pjones/plasma-manager";
|
# url = "github:pjones/plasma-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
# };
|
||||||
helix = {
|
helix = {
|
||||||
url = "github:mattwparas/helix/steel-event-system";
|
url = "github:mattwparas/helix/steel-event-system";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
# prescurve.url = "github:taotien/prescurve";
|
# prescurve.url = "github:taotien/prescurve";
|
||||||
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
# prescurve.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
zen-browser = {
|
zen-browser = {
|
||||||
url = "github:MarceColl/zen-browser-flake";
|
url = "github:0xc000022070/zen-browser-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
|
||||||
|
|
@ -43,10 +43,12 @@
|
||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
"https://cosmic.cachix.org/"
|
"https://cosmic.cachix.org/"
|
||||||
# "https://helix.cachix.org/"
|
# "https://helix.cachix.org/"
|
||||||
|
"https://devenv.cachix.org"
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||||
# "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
# "helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||||
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -58,8 +60,7 @@
|
||||||
agenix,
|
agenix,
|
||||||
disko,
|
disko,
|
||||||
home-manager,
|
home-manager,
|
||||||
plasma-manager,
|
# plasma-manager,
|
||||||
# helix,
|
|
||||||
nixos-cosmic,
|
nixos-cosmic,
|
||||||
zen-browser,
|
zen-browser,
|
||||||
determinate,
|
determinate,
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,10 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixpkgs.config = {allowUnfree = true;};
|
nixpkgs.config = {allowUnfree = true;};
|
||||||
nix.nixPath = ["nixpks=${pkgs.path}"];
|
nix.nixPath = ["nixpkgs=${pkgs.path}"];
|
||||||
|
nix.extraOptions = ''
|
||||||
|
trusted-users = root tao
|
||||||
|
'';
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
system.stateVersion = lib.mkDefault "23.05";
|
system.stateVersion = lib.mkDefault "23.05";
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
darktable
|
darktable
|
||||||
deluge
|
deluge
|
||||||
discord
|
discord
|
||||||
inputs.plasma-manager.packages.${pkgs.system}.default
|
# inputs.plasma-manager.packages.${pkgs.system}.default
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
# jellyfin-mpv-shim
|
# jellyfin-mpv-shim
|
||||||
kdePackages.plasma-vault
|
kdePackages.plasma-vault
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ alias snapper = snapper -c home
|
||||||
alias follow = readlink -f
|
alias follow = readlink -f
|
||||||
alias la = ls -a
|
alias la = ls -a
|
||||||
|
|
||||||
alias quiet = sudo ectool fanduty 30
|
alias quiet = sudo ectool fanduty 42
|
||||||
alias loud = sudo ectool autofanctrl
|
alias loud = sudo ectool autofanctrl
|
||||||
|
|
||||||
alias cp-full = cp
|
alias cp-full = cp
|
||||||
|
|
@ -71,14 +71,14 @@ def nr [package] {
|
||||||
nix search nixpkgs $package
|
nix search nixpkgs $package
|
||||||
}
|
}
|
||||||
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
|
||||||
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders | is-empty) {
|
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
|
||||||
sudo nix store info --store ssh://nocomputer
|
sudo nix store info --store ssh://nocomputer
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($builders | is-empty) {
|
if ($builders == "") {
|
||||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose --builders ""
|
||||||
} else {
|
} else {
|
||||||
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose --builders $builders ...$rest
|
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest
|
||||||
}
|
}
|
||||||
toastify send rebuild done!
|
toastify send rebuild done!
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue