This commit is contained in:
parent
338c334a81
commit
874febac3d
4 changed files with 196 additions and 248 deletions
19
flake.lock
19
flake.lock
|
@ -421,8 +421,7 @@
|
|||
"nixpkgs-rust-analyzer": "nixpkgs-rust-analyzer",
|
||||
"nixpkgs-stable": "nixpkgs-stable",
|
||||
"nur": "nur",
|
||||
"sops": "sops",
|
||||
"veracrypt": "veracrypt"
|
||||
"sops": "sops"
|
||||
}
|
||||
},
|
||||
"rust-analyzer-src": {
|
||||
|
@ -545,22 +544,6 @@
|
|||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"veracrypt": {
|
||||
"locked": {
|
||||
"lastModified": 1696681798,
|
||||
"narHash": "sha256-tvga08j8IOHrRbEnqJDc6bzO4la5i7ywf23kLs8W0OY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2bbbf414fed6ab89cd971f5645da692dad6d9420",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "2bbbf414fed6ab89cd971f5645da692dad6d9420",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
68
flake.nix
68
flake.nix
|
@ -1,27 +1,10 @@
|
|||
{
|
||||
description = "NixOS configuration with flakes";
|
||||
outputs = {
|
||||
alejandra,
|
||||
cryptpad,
|
||||
darwin,
|
||||
disko,
|
||||
endless-sky,
|
||||
flake-compat,
|
||||
flake-utils,
|
||||
helix,
|
||||
home-manager,
|
||||
nil,
|
||||
nix-ld,
|
||||
nixos-hardware,
|
||||
nixpkgs-master,
|
||||
nixpkgs-nixos-unstable,
|
||||
nixpkgs-rust-analyzer,
|
||||
nixpkgs-stable,
|
||||
nur,
|
||||
self,
|
||||
sops,
|
||||
veracrypt,
|
||||
} @ inputs: let
|
||||
outputs = { alejandra, cryptpad, darwin, disko, endless-sky, flake-compat
|
||||
, flake-utils, helix, home-manager, nil, nix-ld, nixos-hardware
|
||||
, nixpkgs-master, nixpkgs-nixos-unstable, nixpkgs-rust-analyzer
|
||||
, nixpkgs-stable, nur, self, sops, }@inputs:
|
||||
let
|
||||
mkServer = pkgs: system: hostname:
|
||||
pkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
@ -40,10 +23,8 @@
|
|||
mkRaspi = pkgs: hostname:
|
||||
pkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
(./. + "/nixos/boxes/${hostname}")
|
||||
sops.nixosModules.sops
|
||||
];
|
||||
modules =
|
||||
[ (./. + "/nixos/boxes/${hostname}") sops.nixosModules.sops ];
|
||||
specialArgs = { inherit inputs; };
|
||||
};
|
||||
mkKiosk = pkgs: system: hostname:
|
||||
|
@ -59,7 +40,8 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cyryl = {
|
||||
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
||||
imports =
|
||||
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||
_module.args.inputs = inputs;
|
||||
_module.args.system = system;
|
||||
};
|
||||
|
@ -93,7 +75,8 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cyryl = {
|
||||
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
||||
imports =
|
||||
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||
_module.args.inputs = inputs;
|
||||
_module.args.system = system;
|
||||
};
|
||||
|
@ -105,23 +88,17 @@
|
|||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
nixpkgs-nixos-unstable = import nixpkgs-nixos-unstable {
|
||||
inherit system;
|
||||
};
|
||||
nixpkgs-nixos-unstable =
|
||||
import nixpkgs-nixos-unstable { inherit system; };
|
||||
nixpkgs-nixos-unstable-and-unfree = import nixpkgs-nixos-unstable {
|
||||
inherit system;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
nixpkgs-veracrypt = import veracrypt {
|
||||
inherit system;
|
||||
config = {allowUnfree = true;};
|
||||
};
|
||||
};
|
||||
};
|
||||
mkShell = packageSet: system: let
|
||||
pkgs = packageSet.legacyPackages.${system};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
mkShell = packageSet: system:
|
||||
let pkgs = packageSet.legacyPackages.${system};
|
||||
in pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
inputs.alejandra.defaultPackage.${system}
|
||||
cacert
|
||||
|
@ -187,7 +164,8 @@
|
|||
(import
|
||||
"${inputs.nixpkgs-stable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix")
|
||||
{
|
||||
environment.systemPackages = with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
||||
environment.systemPackages =
|
||||
with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
||||
neovim
|
||||
htop
|
||||
btop
|
||||
|
@ -254,12 +232,6 @@
|
|||
repo = "nixpkgs";
|
||||
ref = "2100c4926200b1ebbee032ad22113597195932f2";
|
||||
};
|
||||
veracrypt = {
|
||||
type = "github";
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
ref = "2bbbf414fed6ab89cd971f5645da692dad6d9420";
|
||||
};
|
||||
nixos-hardware = {
|
||||
type = "github";
|
||||
owner = "NixOS";
|
||||
|
@ -329,9 +301,7 @@
|
|||
};
|
||||
cryptpad = {
|
||||
url = "github:michaelshmitty/cryptpad-flake";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs-stable";
|
||||
};
|
||||
inputs = { nixpkgs.follows = "nixpkgs-stable"; };
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
"vscode-extension-ms-vscode-cpptools"
|
||||
"vscode-with-extensions"
|
||||
"vscode"
|
||||
"veracrypt"
|
||||
];
|
||||
|
||||
home-manager.users.cyryl = { ... }: {
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
nixpkgs-nixos-unstable-and-unfree,
|
||||
nixpkgs-veracrypt,
|
||||
...
|
||||
}: let
|
||||
{ config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }:
|
||||
let
|
||||
stateVersion = "23.11";
|
||||
username = "cyryl";
|
||||
in {
|
||||
|
@ -37,7 +30,7 @@ in {
|
|||
tmux
|
||||
usbutils
|
||||
wget
|
||||
nixpkgs-veracrypt.veracrypt
|
||||
veracrypt
|
||||
];
|
||||
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
|
@ -61,7 +54,8 @@ in {
|
|||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
networking.nameservers = ["9.9.9.9" "2620:fe::fe" "149.112.112.112" "2620:fe::9"];
|
||||
networking.nameservers =
|
||||
[ "9.9.9.9" "2620:fe::fe" "149.112.112.112" "2620:fe::9" ];
|
||||
|
||||
networking.hosts = { "10.11.99.1" = [ "remarkable" ]; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue